diff options
author | 2015-04-03 16:59:34 +0000 | |
---|---|---|
committer | 2015-04-03 16:59:34 +0000 | |
commit | de972994578373f1de0ecc6a5472c3b381a3c813 (patch) | |
tree | e2f76abd00d13f092fcaa6f602bd50baa89cd319 | |
parent | Add test for -b after -k (currently fails) (diff) | |
download | wireguard-openbsd-de972994578373f1de0ecc6a5472c3b381a3c813.tar.xz wireguard-openbsd-de972994578373f1de0ecc6a5472c3b381a3c813.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-- | usr.bin/mandoc/man_macro.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/man_macro.c b/usr.bin/mandoc/man_macro.c index cbaf4e7b171..71c4543db1d 100644 --- a/usr.bin/mandoc/man_macro.c +++ b/usr.bin/mandoc/man_macro.c @@ -1,4 +1,4 @@ -/* $OpenBSD: man_macro.c,v 1.64 2015/04/02 22:06:17 schwarze Exp $ */ +/* $OpenBSD: man_macro.c,v 1.65 2015/04/03 16:59:34 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2012, 2013, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org> @@ -399,7 +399,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); } |