version 1.305, 2016/08/10 20:17:50 |
version 1.307, 2016/08/11 11:39:46 |
Line 886 post_display(POST_ARGS) |
|
Line 886 post_display(POST_ARGS) |
|
n = mdoc->last; |
n = mdoc->last; |
switch (n->type) { |
switch (n->type) { |
case ROFFT_BODY: |
case ROFFT_BODY: |
if (n->end != ENDBODY_NOT) |
if (n->end != ENDBODY_NOT) { |
break; |
if (n->tok == MDOC_Bd && |
if (n->child == NULL) |
n->body->parent->args == NULL) |
|
roff_node_delete(mdoc, n); |
|
} else if (n->child == NULL) |
mandoc_msg(MANDOCERR_BLK_EMPTY, mdoc->parse, |
mandoc_msg(MANDOCERR_BLK_EMPTY, mdoc->parse, |
n->line, n->pos, mdoc_macronames[n->tok]); |
n->line, n->pos, mdoc_macronames[n->tok]); |
else if (n->tok == MDOC_D1) |
else if (n->tok == MDOC_D1) |