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 | d6723f74a684ee974e1b51a37f806d2af1fcaaa7 (patch) | |
tree | 56f84116fe30fbeb2a8f53ea598a811b09452f85 /man_term.c | |
parent | b62bcd63e382e3538d704cd43ecca19bbf9c568b (diff) | |
download | mandoc-d6723f74a684ee974e1b51a37f806d2af1fcaaa7.tar.gz |
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 | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |