diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-01-21 11:35:26 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-01-21 11:35:26 +0000 |
commit | 750900b44b04f0713e1d2456b42c728b564c9c39 (patch) | |
tree | 25cdf9e2ab1b4cfcb3b0536bac7c982488c9eab2 /action.c | |
parent | e2762e29b6445ab6177b83521a279938a317605f (diff) | |
download | mandoc-750900b44b04f0713e1d2456b42c728b564c9c39.tar.gz |
More validation on prologue/first NAME section.
Diffstat (limited to 'action.c')
-rw-r--r-- | action.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -193,8 +193,7 @@ post_sh(struct mdoc *mdoc) return(1); if (xstrlcats(buf, mdoc->last->child, 64)) { if (SEC_CUSTOM != (sec = mdoc_atosec(buf))) - mdoc->sec_lastn = sec; - mdoc->sec_last = sec; + mdoc->lastnamed = sec; return(1); } @@ -268,8 +267,7 @@ post_os(struct mdoc *mdoc) return(mdoc_err(mdoc, "macro parameters too long")); mdoc->meta.os = xstrdup(buf[0] ? buf : "local"); - mdoc->sec_lastn = mdoc->sec_last = SEC_BODY; - mdoc->flags |= MDOC_BODYPARSE; + mdoc->lastnamed = SEC_BODY; return(post_prologue(mdoc)); } |