summaryrefslogtreecommitdiffstats
path: root/man_macro.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-08-21 12:12:12 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-08-21 12:12:12 +0000
commitd8d8e19a17345326342a05e737487b04fa994353 (patch)
tree761cd03a2f8a171fc09d2d039c72505cafb59db8 /man_macro.c
parent2a2e4af01790aa6afe854a5284be8b7ff895e9b5 (diff)
downloadmandoc-d8d8e19a17345326342a05e737487b04fa994353.tar.gz
Open explicit scope on libman exit now only generates warning.
Consecutive ELINE scopes are now pruned (with a warning).
Diffstat (limited to 'man_macro.c')
-rw-r--r--man_macro.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/man_macro.c b/man_macro.c
index f6b9e1a8..c09b0070 100644
--- a/man_macro.c
+++ b/man_macro.c
@@ -357,7 +357,8 @@ man_macroend(struct man *m)
continue;
if ( ! (MAN_EXPLICIT & man_macros[n->tok].flags))
continue;
- return(man_nerr(m, n, WEXITSCOPE));
+ if ( ! man_nwarn(m, n, WEXITSCOPE))
+ return(0);
}
return(man_unscope(m, m->first));