X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/7c44ccf312af62ad9f897278c8b76f0ec53ab316..9d568b7d9d058612eaec8cbbc8a2161cd895aa1a:/mdoc_validate.c diff --git a/mdoc_validate.c b/mdoc_validate.c index 4a31b458..1c5d8c9f 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_validate.c,v 1.27 2009/07/12 16:34:16 kristaps Exp $ */ +/* $Id: mdoc_validate.c,v 1.30 2009/07/12 20:30:35 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -1131,7 +1131,7 @@ post_st(POST_ARGS) if (mdoc_a2st(mdoc->last->child->string)) return(1); - return(mdoc_nwarn(mdoc, mdoc->last, EBADSTAND)); + return(mdoc_nerr(mdoc, mdoc->last, EBADSTAND)); } @@ -1153,7 +1153,7 @@ post_sh_body(POST_ARGS) { struct mdoc_node *n; - if (SEC_NAME != mdoc->lastnamed) + if (SEC_NAME != mdoc->lastsec) return(1); /* @@ -1168,6 +1168,8 @@ post_sh_body(POST_ARGS) for ( ; n && n->next; n = n->next) { if (MDOC_ELEM == n->type && MDOC_Nm == n->tok) continue; + if (MDOC_TEXT == n->type) + continue; if ( ! mdoc_nwarn(mdoc, mdoc->last, ENAMESECINC)) return(0); }