summaryrefslogtreecommitdiffstats
path: root/man_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-05-09 14:10:01 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-05-09 14:10:01 +0000
commit05c1408b281441f3ec02a7ae478be405fab9635a (patch)
treee9b1ab78d59841bec667b6bd5b0d4c78c50187c6 /man_html.c
parent73dc5e8b721bdd4c7e867dc7dd39d4f8dec3e3a9 (diff)
downloadmandoc-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 'man_html.c')
-rw-r--r--man_html.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/man_html.c b/man_html.c
index 777a6072..05f3843b 100644
--- a/man_html.c
+++ b/man_html.c
@@ -251,7 +251,8 @@ print_man_node(MAN_ARGS)
case ROFFT_TEXT:
if (fillmode(h, want_fillmode) == MAN_fi &&
want_fillmode == MAN_fi &&
- n->flags & NODE_LINE && *n->string == ' ')
+ n->flags & NODE_LINE && *n->string == ' ' &&
+ (h->flags & HTML_NONEWLINE) == 0)
print_otag(h, TAG_BR, "");
if (*n->string != '\0')
break;