X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/045d89ac24985c4ef7d5bc10d85666882637dd62..0dd9e4fce7c0b9444311670b6068714c46322fa6:/mdoc_html.c?ds=inline diff --git a/mdoc_html.c b/mdoc_html.c index 5bd4c014..1ee5c076 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.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,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);