summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-01-12 10:43:22 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-01-12 10:43:22 +0000
commit2bf82dba54d0ddc4e85c60a1627506ced02908f0 (patch)
treea82dabc3e5509d2cd4a383b5799e38c3a7615bbd /mdoc_html.c
parentd184f91df1cea2fba0dbd3f880de0a6e9f7b84ac (diff)
downloadmandoc-2bf82dba54d0ddc4e85c60a1627506ced02908f0.tar.gz
If the first character of free-form text is whitespace, then a newline
shall precede outputted text (surprise!).
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 4de1115d..a3708728 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -420,6 +420,8 @@ print_mdoc_node(MDOC_ARGS)
child = mdoc_root_pre(m, n, h);
break;
case (MDOC_TEXT):
+ if (' ' == *n->string && MDOC_LINE & n->flags)
+ print_otag(h, TAG_BR, 0, NULL);
print_text(h, n->string);
return;
case (MDOC_TBL):