=================================================================== RCS file: /cvs/mandoc/mdoc_html.c,v retrieving revision 1.221 retrieving revision 1.222 diff -u -p -r1.221 -r1.222 --- mandoc/mdoc_html.c 2015/02/01 23:10:35 1.221 +++ mandoc/mdoc_html.c 2015/02/05 00:14:13 1.222 @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.221 2015/02/01 23:10:35 schwarze Exp $ */ +/* $Id: mdoc_html.c,v 1.222 2015/02/05 00:14:13 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons * Copyright (c) 2014, 2015 Ingo Schwarze @@ -436,12 +436,9 @@ print_mdoc_node(MDOC_ARGS) break; } - if (HTML_KEEP & h->flags) { - if (n->prev ? (n->prev->lastline != n->line) : - (n->parent && n->parent->line != n->line)) { - h->flags &= ~HTML_KEEP; - h->flags |= HTML_PREKEEP; - } + if (h->flags & HTML_KEEP && n->flags & MDOC_LINE) { + h->flags &= ~HTML_KEEP; + h->flags |= HTML_PREKEEP; } if (child && n->child)