=================================================================== RCS file: /cvs/mandoc/mdoc_term.c,v retrieving revision 1.178 retrieving revision 1.179 diff -u -p -r1.178 -r1.179 --- mandoc/mdoc_term.c 2010/07/26 22:35:59 1.178 +++ mandoc/mdoc_term.c 2010/07/27 08:38:04 1.179 @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.178 2010/07/26 22:35:59 kristaps Exp $ */ +/* $Id: mdoc_term.c,v 1.179 2010/07/27 08:38:04 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * Copyright (c) 2010 Ingo Schwarze @@ -1621,8 +1621,7 @@ termp_fa_pre(DECL_ARGS) static int termp_bd_pre(DECL_ARGS) { - size_t tabwidth; - size_t rm, rmax; + size_t tabwidth, rm, rmax; const struct mdoc_node *nn; if (MDOC_BLOCK == n->type) { @@ -1654,12 +1653,9 @@ termp_bd_pre(DECL_ARGS) p->rmargin = p->maxrmargin = TERM_MAXMARGIN; for (nn = n->child; nn; nn = nn->next) { - p->flags |= TERMP_NOSPACE; + if (nn->prev && nn->prev->line < nn->line) + term_newln(p); print_mdoc_node(p, pair, m, nn); - if (NULL == nn->prev || - nn->prev->line < nn->line || - NULL == nn->next) - term_flushln(p); } p->tabwidth = tabwidth;