From 029687108c2a7a7bfad17ba05b13e003b6170b7e Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 7 Mar 2017 14:04:08 +0000 Subject: fix completely empty .Eo: no blank line wanted --- mdoc_markdown.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'mdoc_markdown.c') diff --git a/mdoc_markdown.c b/mdoc_markdown.c index f14d66ce..ccbd8350 100644 --- a/mdoc_markdown.c +++ b/mdoc_markdown.c @@ -957,21 +957,17 @@ md_pre_Eo(struct roff_node *n) static void md_post_Eo(struct roff_node *n) { - int body, tail; - if (n->end != ENDBODY_NOT) { outflags |= MD_spc; return; } - body = n->child != NULL || n->parent->head->child != NULL; - tail = n->parent->tail != NULL && n->parent->tail->child != NULL; + if (n->child == NULL && n->parent->head->child == NULL) + return; - if (body && tail) + if (n->parent->tail != NULL && n->parent->tail->child != NULL) outflags &= ~MD_spc; - else if ( ! (body || tail)) - md_preword(); - else if ( ! tail) + else outflags |= MD_spc; } -- cgit