X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/c0be1fbed2b6723c63c27df2ef9c35a42aed2502..0dd9e4fce7c0b9444311670b6068714c46322fa6:/mdoc_html.c diff --git a/mdoc_html.c b/mdoc_html.c index f109bd69..1ee5c076 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -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);