=================================================================== RCS file: /cvs/mandoc/mdoc_term.c,v retrieving revision 1.251 retrieving revision 1.252 diff -u -p -r1.251 -r1.252 --- mandoc/mdoc_term.c 2013/12/23 02:20:09 1.251 +++ mandoc/mdoc_term.c 2013/12/24 19:11:46 1.252 @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.251 2013/12/23 02:20:09 schwarze Exp $ */ +/* $Id: mdoc_term.c,v 1.252 2013/12/24 19:11:46 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2012, 2013 Ingo Schwarze @@ -313,7 +313,7 @@ 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->lastline != n->line) : (n->parent && n->parent->line != n->line)) { p->flags &= ~TERMP_KEEP; p->flags |= TERMP_PREKEEP;