diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-21 09:30:52 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-21 09:30:52 +0000 |
commit | aa181d8c031d593d0001069e0b7d6b946ceb07fe (patch) | |
tree | e9623125c341a734faf2d37935d98d973e711bd2 /macro.c | |
parent | 30a7f3ade5ce9de73e04338888921b898b17f18d (diff) | |
download | mandoc-aa181d8c031d593d0001069e0b7d6b946ceb07fe.tar.gz mandoc-aa181d8c031d593d0001069e0b7d6b946ceb07fe.tar.zst mandoc-aa181d8c031d593d0001069e0b7d6b946ceb07fe.zip |
Fixed new partial-imp closure (wasn't action-ing closed scopes).
Diffstat (limited to 'macro.c')
-rw-r--r-- | macro.c | 16 |
1 files changed, 6 insertions, 10 deletions
@@ -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); } |