=================================================================== RCS file: /cvs/mandoc/man_term.c,v retrieving revision 1.95 retrieving revision 1.96 diff -u -p -r1.95 -r1.96 --- mandoc/man_term.c 2011/01/11 00:39:00 1.95 +++ mandoc/man_term.c 2011/01/12 10:43:22 1.96 @@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.95 2011/01/11 00:39:00 kristaps Exp $ */ +/* $Id: man_term.c,v 1.96 2011/01/12 10:43:22 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * Copyright (c) 2010, 2011 Ingo Schwarze @@ -859,11 +859,14 @@ print_man_node(DECL_ARGS) switch (n->type) { case(MAN_TEXT): - if (0 == *n->string) { + if ('\0' == *n->string) { term_vspace(p); break; - } + } + if (' ' == *n->string && MAN_LINE & n->flags) + term_newln(p); + term_word(p, n->string); /* FIXME: this means that macro lines are munged! */ @@ -878,6 +881,7 @@ print_man_node(DECL_ARGS) p->rmargin = rm; p->maxrmargin = rmax; } + break; case (MAN_TBL): if (TBL_SPAN_FIRST & n->span->flags)