aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit39734eb01d30f4fff1da35538dbe086698bf9d43 (patch)
tree47c9e25683b72c07539a59eb76cf93604b8e9578 /man_html.c
parentb07175c583be6f4b4733c49a5e4e855490ea5191 (diff)
downloadmandoc-39734eb01d30f4fff1da35538dbe086698bf9d43.tar.gz
mandoc-39734eb01d30f4fff1da35538dbe086698bf9d43.tar.zst
mandoc-39734eb01d30f4fff1da35538dbe086698bf9d43.zip
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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/man_html.c b/man_html.c
index 2a071085..87c6372b 100644
--- a/man_html.c
+++ b/man_html.c
@@ -1,4 +1,4 @@
-/* $Id: man_html.c,v 1.141 2017/05/05 15:17:32 schwarze Exp $ */
+/* $Id: man_html.c,v 1.142 2017/05/09 14:10:01 schwarze Exp $ */
/*
* Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013, 2014, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -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;