From bcb033d5ff7669fa782b76afbec1ad5ca72039e2 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 3 Apr 2015 17:00:52 +0000 Subject: 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. --- man_macro.c | 4 ++-- 1 file 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 * Copyright (c) 2012, 2013, 2014, 2015 Ingo Schwarze @@ -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); } -- cgit v1.2.3-56-ge451