summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2010-08-07 17:20:17 +0000
committerIngo Schwarze <schwarze@openbsd.org>2010-08-07 17:20:17 +0000
commitd06aefa0e98061854ea15d8869ac7e9be186ecf7 (patch)
tree12aa686fff5a426957ae250b6fc06edaaeec16fd /mdoc_html.c
parent2b7b060863eb3ae7f588f2199f0bbb55066b6bba (diff)
downloadmandoc-d06aefa0e98061854ea15d8869ac7e9be186ecf7.tar.gz
same as mdoc_term.c rev. 1.180:
preserve blank lines at the end of .Bd -literal patch from kristaps@, who asked me to commit this
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index a25e06ab..46b4e569 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1457,11 +1457,11 @@ mdoc_bd_pre(MDOC_ARGS)
print_otag(h, TAG_DIV, 2, tag);
for (nn = n->child; nn; nn = nn->next) {
- if (nn->prev && nn->prev->line < nn->line) {
- print_text(h, "\n");
- h->flags |= HTML_NOSPACE;
- }
print_mdoc_node(m, nn, h);
+ if (nn->next && nn->next->line == nn->line)
+ continue;
+ print_text(h, "\n");
+ h->flags |= HTML_NOSPACE;
}
return(0);