summaryrefslogtreecommitdiffstats
path: root/mdoc_man.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-11-17 06:44:58 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-11-17 06:44:58 +0000
commita6c982532bfd28e9dee86e99b8f6c5102300c294 (patch)
tree703a57e3dc6da961266a29fd02e142916fb8b756 /mdoc_man.c
parent4fab3c6e074ed129fedec660b155817a528496d3 (diff)
downloadmandoc-a6c982532bfd28e9dee86e99b8f6c5102300c294.tar.gz
Multiple fixes with respect to in-line macros:
* .No selects the default font; relevant e.g. in .Bf blocks * no need to force empty .Li elements * closing delimiters as leading macro arguments do not suppress space * opening delimiters at the end of a macro line do not suppress space * correctly handle delimiter spacing in -Tman As a side effect, these fixes let mandoc warn about empty .No macros as requested by bentley@.
Diffstat (limited to 'mdoc_man.c')
-rw-r--r--mdoc_man.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mdoc_man.c b/mdoc_man.c
index 234b9929..e5d062c9 100644
--- a/mdoc_man.c
+++ b/mdoc_man.c
@@ -594,7 +594,11 @@ print_node(DECL_ARGS)
printf("\\&");
outflags &= ~MMAN_spc;
}
+ if (outflags & MMAN_Sm && ! (n->flags & MDOC_DELIMC))
+ outflags |= MMAN_spc_force;
print_word(n->string);
+ if (outflags & MMAN_Sm && ! (n->flags & MDOC_DELIMO))
+ outflags |= MMAN_spc;
} else {
/*
* Conditionally run the pre-node action handler for a