aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-21 09:30:52 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-21 09:30:52 +0000
commitaa181d8c031d593d0001069e0b7d6b946ceb07fe (patch)
treee9623125c341a734faf2d37935d98d973e711bd2
parent30a7f3ade5ce9de73e04338888921b898b17f18d (diff)
downloadmandoc-aa181d8c031d593d0001069e0b7d6b946ceb07fe.tar.gz
mandoc-aa181d8c031d593d0001069e0b7d6b946ceb07fe.tar.zst
mandoc-aa181d8c031d593d0001069e0b7d6b946ceb07fe.zip
Fixed new partial-imp closure (wasn't action-ing closed scopes).
-rw-r--r--macro.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/macro.c b/macro.c
index 9c15e863..0c0259f9 100644
--- a/macro.c
+++ b/macro.c
@@ -1,4 +1,4 @@
-/* $Id: macro.c,v 1.74 2009/03/21 09:20:15 kristaps Exp $ */
+/* $Id: macro.c,v 1.75 2009/03/21 09:30:52 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
@@ -1057,19 +1057,15 @@ blk_part_imp(MACRO_PROT_ARGS)
if (body == n)
break;
- if (n) {
- mdoc->last = body;
- mdoc->next = MDOC_NEXT_SIBLING;
- }
+ if (n && ! rew_last(mdoc, body))
+ return(0);
if (1 == ppos && ! append_delims(mdoc, line, pos, buf))
return(0);
- if (n) {
- mdoc->last = mdoc->last->parent;
- assert(mdoc->last == blk);
- mdoc->next = MDOC_NEXT_SIBLING;
- }
+ if (n && ! rew_last(mdoc, blk))
+ return(0);
+
return(1);
}