=================================================================== RCS file: /cvs/mandoc/mdoc_html.c,v retrieving revision 1.99 retrieving revision 1.102 diff -u -p -r1.99 -r1.102 --- mandoc/mdoc_html.c 2010/07/23 00:08:57 1.99 +++ mandoc/mdoc_html.c 2010/08/20 01:02:07 1.102 @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.99 2010/07/23 00:08:57 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.102 2010/08/20 01:02:07 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * @@ -1183,7 +1183,7 @@ mdoc_bl_pre(MDOC_ARGS) ord = malloc(sizeof(struct ord)); if (NULL == ord) { perror(NULL); - exit(EXIT_FAILURE); + exit(MANDOCLEVEL_SYSERR); } ord->cookie = n; ord->pos = 1; @@ -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) + if (nn->next && nn->next->line == nn->line) continue; - if (nn->prev && nn->prev->line < nn->line) - print_text(h, "\n"); - else if (NULL == nn->prev) - print_text(h, "\n"); + print_text(h, "\n"); + h->flags |= HTML_NOSPACE; } return(0);