diff options
author | 2009-08-22 15:29:23 +0000 | |
---|---|---|
committer | 2009-08-22 15:29:23 +0000 | |
commit | 2632fb209751a3fcfe2d66d44e219352d34fa27f (patch) | |
tree | 96d9f09e3efb671b37b08b2f7e490eb17cc42fba | |
parent | sync to 1.8.4: recognize the \c escape (only used in -man) (diff) | |
download | wireguard-openbsd-2632fb209751a3fcfe2d66d44e219352d34fa27f.tar.xz wireguard-openbsd-2632fb209751a3fcfe2d66d44e219352d34fa27f.zip |
sync to 1.8.4: do not error out in case of out-of-order prologue macros
-rw-r--r-- | usr.bin/mandoc/mdoc_action.c | 6 |
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); } |