=================================================================== RCS file: /cvs/mandoc/mdoc_term.c,v retrieving revision 1.247 retrieving revision 1.248 diff -u -p -r1.247 -r1.248 --- mandoc/mdoc_term.c 2013/05/29 15:40:22 1.247 +++ mandoc/mdoc_term.c 2013/05/29 16:11:40 1.248 @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.247 2013/05/29 15:40:22 schwarze Exp $ */ +/* $Id: mdoc_term.c,v 1.248 2013/05/29 16:11:40 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2012 Ingo Schwarze @@ -313,14 +313,10 @@ print_mdoc_node(DECL_ARGS) */ if (TERMP_KEEP & p->flags || MDOC_SYNPRETTY & n->flags) { - if (n->prev && n->prev->line != n->line) { + if (n->prev ? (n->prev->line != n->line) : + (n->parent && n->parent->line != n->line)) { p->flags &= ~TERMP_KEEP; p->flags |= TERMP_PREKEEP; - } else if (NULL == n->prev) { - if (n->parent && n->parent->line != n->line) { - p->flags &= ~TERMP_KEEP; - p->flags |= TERMP_PREKEEP; - } } }