diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-05-09 14:10:01 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-05-09 14:10:01 +0000 |
commit | 05c1408b281441f3ec02a7ae478be405fab9635a (patch) | |
tree | e9b1ab78d59841bec667b6bd5b0d4c78c50187c6 /mdoc_term.c | |
parent | 73dc5e8b721bdd4c7e867dc7dd39d4f8dec3e3a9 (diff) | |
download | mandoc-05c1408b281441f3ec02a7ae478be405fab9635a.tar.gz |
Trailing \c suppresses the output line break even if
the next line is a text line starting with whitespace.
Quirk found in the sysutils/rancid port.
Diffstat (limited to 'mdoc_term.c')
-rw-r--r-- | mdoc_term.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mdoc_term.c b/mdoc_term.c index 0307cca6..245f58e5 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -342,7 +342,8 @@ print_mdoc_node(DECL_ARGS) switch (n->type) { case ROFFT_TEXT: - if (' ' == *n->string && NODE_LINE & n->flags) + if (*n->string == ' ' && n->flags & NODE_LINE && + (p->flags & TERMP_NONEWLINE) == 0) term_newln(p); if (NODE_DELIMC & n->flags) p->flags |= TERMP_NOSPACE; |