diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-04 11:58:09 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-04 11:58:09 +0000 |
commit | 30705ca1ab51c96a90cda4295901a3c81fd36673 (patch) | |
tree | 228aca43181c5949b9af88fcb3e841c1d8090df4 /mdoc_term.c | |
parent | 38cd8d7744122bc034230a06df16281613edf815 (diff) | |
download | mandoc-30705ca1ab51c96a90cda4295901a3c81fd36673.tar.gz |
Do not fix the default indent for all subsequent files; some may use
a different macro language and hence require a different indent.
You can see the effect with "man -a 1 host hostname".
Diffstat (limited to 'mdoc_term.c')
-rw-r--r-- | mdoc_term.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mdoc_term.c b/mdoc_term.c index 143dfb41..1feddb55 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -258,6 +258,7 @@ terminal_mdoc(void *arg, const struct roff_man *mdoc) { struct roff_node *n; struct termp *p; + size_t save_defindent; p = (struct termp *)arg; p->overstep = 0; @@ -278,6 +279,7 @@ terminal_mdoc(void *arg, const struct roff_man *mdoc) n = n->next; } } else { + save_defindent = p->defindent; if (p->defindent == 0) p->defindent = 5; term_begin(p, print_mdoc_head, print_mdoc_foot, @@ -290,6 +292,7 @@ terminal_mdoc(void *arg, const struct roff_man *mdoc) print_mdoc_nodelist(p, NULL, &mdoc->meta, n); } term_end(p); + p->defindent = save_defindent; } } |