From 4514bbe8133f9b6a03f35d9c4321d64e48e6cf33 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 5 Feb 2015 00:14:13 +0000 Subject: Simplify by deleting the "lastline" member of struct mdoc_node. Minus one struct member, minus 17 lines of code, no functional change. --- mdoc_html.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'mdoc_html.c') diff --git a/mdoc_html.c b/mdoc_html.c index 8a52855e..82aa5d95 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -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) -- cgit