summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-07-26 10:29:39 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-07-26 10:29:39 +0000
commit08b8036a1b095dd4976dedc2d87ef20aae4fc7b4 (patch)
tree138db10414669d04acfc082f3610d242fc706a5b
parentae20977febd8bab1885a26cf11966862d6ab680c (diff)
downloadmandoc-08b8036a1b095dd4976dedc2d87ef20aae4fc7b4.tar.gz
mandoc-08b8036a1b095dd4976dedc2d87ef20aae4fc7b4.tar.zst
mandoc-08b8036a1b095dd4976dedc2d87ef20aae4fc7b4.zip
Made out-of-order prologue macros not cause an error.
-rw-r--r--mdoc_action.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mdoc_action.c b/mdoc_action.c
index a5e84dfd..87882138 100644
--- a/mdoc_action.c
+++ b/mdoc_action.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_action.c,v 1.33 2009/07/25 16:03:03 kristaps Exp $ */
+/* $Id: mdoc_action.c,v 1.34 2009/07/26 10:29:39 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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);
}