diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2013-11-11 00:37:55 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2013-11-11 00:37:55 +0000 |
commit | 399942b9c89420955d4228916334e0a5d499da86 (patch) | |
tree | f32738f694568451bbfec2db5d1bb0db67842010 /man_term.c | |
parent | 7e66e0356807e7c8c64b707c229784ae9fdc0512 (diff) | |
download | mandoc-399942b9c89420955d4228916334e0a5d499da86.tar.gz mandoc-399942b9c89420955d4228916334e0a5d499da86.tar.zst mandoc-399942b9c89420955d4228916334e0a5d499da86.zip |
In the parser, when closing an explicit block that is not open,
close below-subsection implicit scopes that may still be open.
In the formatter, make sure indentation is reset when leaving a scope,
not only when entering the next one.
Improves the formatting of gpg(1); issue reported by jca on ports.
Diffstat (limited to 'man_term.c')
-rw-r--r-- | man_term.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.137 2013/10/17 20:54:58 schwarze Exp $ */ +/* $Id: man_term.c,v 1.138 2013/11/11 00:37:55 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2011, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org> @@ -679,6 +679,7 @@ post_IP(DECL_ARGS) break; case (MAN_BODY): term_newln(p); + p->offset = mt->offset; break; default: break; @@ -766,6 +767,7 @@ post_TP(DECL_ARGS) break; case (MAN_BODY): term_newln(p); + p->offset = mt->offset; break; default: break; |