=================================================================== RCS file: /cvs/mandoc/mdoc_markdown.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -p -r1.6 -r1.7 --- mandoc/mdoc_markdown.c 2017/03/07 13:28:02 1.6 +++ mandoc/mdoc_markdown.c 2017/03/07 14:04:08 1.7 @@ -1,4 +1,4 @@ -/* $Id: mdoc_markdown.c,v 1.6 2017/03/07 13:28:02 schwarze Exp $ */ +/* $Id: mdoc_markdown.c,v 1.7 2017/03/07 14:04:08 schwarze Exp $ */ /* * Copyright (c) 2017 Ingo Schwarze * @@ -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; }