-/* $Id: mdoc_html.c,v 1.27 2010/07/31 21:43:07 schwarze Exp $ */
+/* $Id: mdoc_html.c,v 1.28 2010/08/07 17:26:11 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
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);