=================================================================== RCS file: /cvs/mandoc/mdoc.c,v retrieving revision 1.165 retrieving revision 1.167 diff -u -p -r1.165 -r1.167 --- mandoc/mdoc.c 2010/09/27 23:03:44 1.165 +++ mandoc/mdoc.c 2010/12/01 16:38:57 1.167 @@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.165 2010/09/27 23:03:44 schwarze Exp $ */ +/* $Id: mdoc.c,v 1.167 2010/12/01 16:38:57 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * Copyright (c) 2010 Ingo Schwarze @@ -286,6 +286,8 @@ mdoc_macro(MACRO_PROT_ARGS) ! (MDOC_PBODY & m->flags)) { if ( ! mdoc_pmsg(m, line, ppos, MANDOCERR_BADPROLOG)) return(0); + if (NULL == m->meta.msec) + m->meta.msec = mandoc_strdup("1"); if (NULL == m->meta.title) m->meta.title = mandoc_strdup("UNKNOWN"); if (NULL == m->meta.vol) @@ -328,8 +330,6 @@ node_append(struct mdoc *mdoc, struct mdoc_node *p) if ( ! mdoc_valid_pre(mdoc, p)) return(0); - if ( ! mdoc_action_pre(mdoc, p)) - return(0); switch (p->type) { case (MDOC_HEAD): @@ -355,8 +355,6 @@ node_append(struct mdoc *mdoc, struct mdoc_node *p) switch (p->type) { case (MDOC_TEXT): if ( ! mdoc_valid_post(mdoc)) - return(0); - if ( ! mdoc_action_post(mdoc)) return(0); break; default: