diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-04-03 17:00:52 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-04-03 17:00:52 +0000 |
commit | bcb033d5ff7669fa782b76afbec1ad5ca72039e2 (patch) | |
tree | 0886ba21e1a9b5c7fe2dfee738899102c286c3df | |
parent | 8879a31912dc194b2380f175f69b923a912d32d6 (diff) | |
download | mandoc-bcb033d5ff7669fa782b76afbec1ad5ca72039e2.tar.gz mandoc-bcb033d5ff7669fa782b76afbec1ad5ca72039e2.tar.zst mandoc-bcb033d5ff7669fa782b76afbec1ad5ca72039e2.zip |
It turns out the man(7) parser suffers from unintelligible handling
of block rewinding, just like then mdoc(7) parser did.
First step in getting rid of rew_scope():
Replace the only call where the target block is known.
This commit is analogous to mdoc_macro.c rev. 1.167.
One down, three to go.
-rw-r--r-- | man_macro.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/man_macro.c b/man_macro.c index 0de6f7ee..ca87460c 100644 --- a/man_macro.c +++ b/man_macro.c @@ -1,4 +1,4 @@ -/* $Id: man_macro.c,v 1.102 2015/04/02 22:48:17 schwarze Exp $ */ +/* $Id: man_macro.c,v 1.103 2015/04/03 17:00:52 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2012, 2013, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org> @@ -401,7 +401,7 @@ blk_imp(MACRO_PROT_ARGS) /* Close out the head and open the body. */ - rew_scope(ROFFT_HEAD, man, tok); + man_unscope(man, n); man_body_alloc(man, line, ppos, tok); } |