diff options
Diffstat (limited to 'mdoc_action.c')
-rw-r--r-- | mdoc_action.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mdoc_action.c b/mdoc_action.c index 2a284546..8971d000 100644 --- a/mdoc_action.c +++ b/mdoc_action.c @@ -530,7 +530,6 @@ post_os(POST_ARGS) if (NULL == (m->meta.os = strdup(buf))) return(mdoc_nerr(m, m->last, EMALLOC)); - m->flags |= MDOC_PBODY; return(post_prol(m)); } @@ -822,6 +821,9 @@ post_prol(POST_ARGS) } mdoc_node_freelist(n); + + if (m->meta.title && m->meta.date && m->meta.os) + m->flags |= MDOC_PBODY; return(1); } @@ -832,6 +834,7 @@ pre_dl(PRE_ARGS) if (MDOC_BODY == n->type) m->flags |= MDOC_LITERAL; + return(1); } |