=================================================================== RCS file: /cvs/mandoc/mdoc_term.c,v retrieving revision 1.306 retrieving revision 1.308 diff -u -p -r1.306 -r1.308 --- mandoc/mdoc_term.c 2015/02/01 23:10:35 1.306 +++ mandoc/mdoc_term.c 2015/02/05 01:46:56 1.308 @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.306 2015/02/01 23:10:35 schwarze Exp $ */ +/* $Id: mdoc_term.c,v 1.308 2015/02/05 01:46:56 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2012-2015 Ingo Schwarze @@ -319,12 +319,9 @@ print_mdoc_node(DECL_ARGS) * invoked in a prior line, revert it to PREKEEP. */ - if (TERMP_KEEP & p->flags) { - if (n->prev ? (n->prev->lastline != n->line) : - (n->parent && n->parent->line != n->line)) { - p->flags &= ~TERMP_KEEP; - p->flags |= TERMP_PREKEEP; - } + if (p->flags & TERMP_KEEP && n->flags & MDOC_LINE) { + p->flags &= ~TERMP_KEEP; + p->flags |= TERMP_PREKEEP; } /* @@ -1093,9 +1090,6 @@ termp_an_pre(DECL_ARGS) p->flags |= TERMP_NOSPLIT; return(0); } - - if (n->child == NULL) - return(0); if (p->flags & TERMP_SPLIT) term_newln(p);