summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2009-08-22 15:29:24 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2009-08-22 15:29:24 +0000
commit65d8da6e39c489ae3bb567f273901478fc61ddae (patch)
tree6889df0dbc17aed4a040a9c11defdf4619968816 /usr.bin
parent376458abdb604004b269f7a724a9fa2b6ca4d89b (diff)
sync to 1.8.4: do not error out in case of out-of-order prologue macros
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mandoc/mdoc_action.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_action.c b/usr.bin/mandoc/mdoc_action.c
index 8cc6c0f6277..a95ebe0c259 100644
--- a/usr.bin/mandoc/mdoc_action.c
+++ b/usr.bin/mandoc/mdoc_action.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_action.c,v 1.17 2009/08/09 19:59:13 schwarze Exp $ */
+/* $Id: mdoc_action.c,v 1.18 2009/08/22 15:29:23 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -527,7 +527,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));
}
@@ -819,6 +818,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);
}