aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit739e4295d79ca09aed58b7272608f71dda2b9c14 (patch)
tree58d31e1c795f741919393fcdf70a190ad5946198 /mdoc_html.c
parent7dafcd45448dcfc60d787b6b2c65402de8655dfe (diff)
downloadmandoc-739e4295d79ca09aed58b7272608f71dda2b9c14.tar.gz
mandoc-739e4295d79ca09aed58b7272608f71dda2b9c14.tar.zst
mandoc-739e4295d79ca09aed58b7272608f71dda2b9c14.zip
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.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 5bd4c014..161aec5a 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.100 2010/07/27 08:38:04 kristaps Exp $ */
+/* $Id: mdoc_html.c,v 1.101 2010/08/07 17:20:17 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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);