=================================================================== RCS file: /cvs/mandoc/mdoc_term.c,v retrieving revision 1.306 retrieving revision 1.307 diff -u -p -r1.306 -r1.307 --- mandoc/mdoc_term.c 2015/02/01 23:10:35 1.306 +++ mandoc/mdoc_term.c 2015/02/05 00:14:13 1.307 @@ -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.307 2015/02/05 00:14:13 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; } /*