diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-26 10:29:39 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-26 10:29:39 +0000 |
commit | 7939214a0c4c4d15d24a59ef149b9755da151c59 (patch) | |
tree | 1c04d7760a52bdccca33fc545f2f6ae42d252788 /mdoc_action.c | |
parent | 11442a14dfe5f85a6e7c8947ca7ed06499eac3cb (diff) | |
download | mandoc-7939214a0c4c4d15d24a59ef149b9755da151c59.tar.gz |
Made out-of-order prologue macros not cause an error.
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); } |