diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-27 08:38:04 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-27 08:38:04 +0000 |
commit | df08481225e46abecdfb617f8f36b98a530a7064 (patch) | |
tree | b32b8f38ee595a77a5eed2bbce1a504501f0785f /mdoc_html.c | |
parent | 0d10c8557262e29c75d5f481922ded794e98c2fe (diff) | |
download | mandoc-df08481225e46abecdfb617f8f36b98a530a7064.tar.gz |
Fix how `Bd -unfilled' and `Bd -literal' break lines. This unbreaks
displays to work as old groff shows them; however, new groff still does
some fancy shit.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r-- | mdoc_html.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/mdoc_html.c b/mdoc_html.c index def1c0e0..a25e06ab 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1457,14 +1457,11 @@ mdoc_bd_pre(MDOC_ARGS) print_otag(h, TAG_DIV, 2, tag); for (nn = n->child; nn; nn = nn->next) { - h->flags |= HTML_NOSPACE; - print_mdoc_node(m, nn, h); - if (NULL == nn->next) - continue; - if (nn->prev && nn->prev->line < nn->line) - print_text(h, "\n"); - else if (NULL == nn->prev) + if (nn->prev && nn->prev->line < nn->line) { print_text(h, "\n"); + h->flags |= HTML_NOSPACE; + } + print_mdoc_node(m, nn, h); } return(0); |