summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/man_macro.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2015-04-03 16:59:35 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2015-04-03 16:59:35 +0000
commit30ce178062fac47687946fc0b188b087f3d0abd0 (patch)
treebfaeabc4390e47c7f9e06d123794d5d00bea8d34 /usr.bin/mandoc/man_macro.c
parent448c23fbc6ba9c70a6b55944d6ba497528a42e89 (diff)
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.
Diffstat (limited to 'usr.bin/mandoc/man_macro.c')
-rw-r--r--usr.bin/mandoc/man_macro.c4
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);
}