From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (schwarze@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id o77HKHjE010998 for ; Sat, 7 Aug 2010 13:20:17 -0400 (EDT) Received: (from schwarze@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id o77HKHkH018875; Sat, 7 Aug 2010 13:20:17 -0400 (EDT) Date: Sat, 7 Aug 2010 13:20:17 -0400 (EDT) Message-Id: <201008071720.o77HKHkH018875@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: same as mdoc_term.c rev. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- 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 Modified Files: -------------- mdocml: mdoc_html.c Revision Data ------------- Index: mdoc_html.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_html.c,v retrieving revision 1.100 retrieving revision 1.101 diff -Lmdoc_html.c -Lmdoc_html.c -u -p -r1.100 -r1.101 --- mdoc_html.c +++ 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); -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv