diff options
Diffstat (limited to 'man_html.c')
-rw-r--r-- | man_html.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -197,7 +197,16 @@ print_man_node(MAN_ARGS) child = man_root_pre(m, n, mh, h); break; case (MAN_TEXT): + if ('\0' == *n->string) { + print_otag(h, TAG_P, 0, NULL); + return; + } + + if (' ' == *n->string && MAN_LINE & n->flags) + print_otag(h, TAG_BR, 0, NULL); + print_text(h, n->string); + if (MANH_LITERAL & mh->fl) print_otag(h, TAG_BR, 0, NULL); return; |