diff options
author | 2011-01-16 02:56:47 +0000 | |
---|---|---|
committer | 2011-01-16 02:56:47 +0000 | |
commit | aad3ea0cf9a80eeddbd69941824fa913eaa077f5 (patch) | |
tree | 805a454b0d7cefde822d4d059eaa9e85d2a227e3 /usr.bin/mandoc/mdoc_html.c | |
parent | Various tbl improvements from kristaps@: (diff) | |
download | wireguard-openbsd-aad3ea0cf9a80eeddbd69941824fa913eaa077f5.tar.xz wireguard-openbsd-aad3ea0cf9a80eeddbd69941824fa913eaa077f5.zip |
If the first character of a free-form text input line is whitespace,
then it will start a new output line;
from kristaps@.
Diffstat (limited to 'usr.bin/mandoc/mdoc_html.c')
-rw-r--r-- | usr.bin/mandoc/mdoc_html.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/mandoc/mdoc_html.c b/usr.bin/mandoc/mdoc_html.c index fea03ced049..c5f25283289 100644 --- a/usr.bin/mandoc/mdoc_html.c +++ b/usr.bin/mandoc/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.46 2011/01/09 16:31:46 schwarze Exp $ */ +/* $Id: mdoc_html.c,v 1.47 2011/01/16 02:56:47 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -416,6 +416,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): |