summaryrefslogtreecommitdiffstats
path: root/mdoc_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2023-11-13 19:13:01 +0000
committerIngo Schwarze <schwarze@openbsd.org>2023-11-13 19:13:01 +0000
commit6fbad40167aab34af92a8ee0415b1074df6bb25a (patch)
tree4ec4850b0f78c632cbafeb732f4cb3e7cc0064d6 /mdoc_term.c
parentdb997d9447d9d1725adb781c7e400a42a303791e (diff)
downloadmandoc-6fbad40167aab34af92a8ee0415b1074df6bb25a.tar.gz
Reduce the man(7) default global indentation from 7n, which was an oddity
in groff-1.01 to groff-1.22.4, to 5n for compatibility with Version 7 AT&T UNIX, 4.3BSD-Reno, groff-1.23.0, and all versions of mdoc(7). OK jmc@ millert@
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index db62ba31..73449e11 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -250,7 +250,6 @@ terminal_mdoc(void *arg, const struct roff_meta *mdoc)
{
struct roff_node *n, *nn;
struct termp *p;
- size_t save_defindent;
p = (struct termp *)arg;
p->tcol->rmargin = p->maxrmargin = p->defrmargin;
@@ -275,9 +274,6 @@ terminal_mdoc(void *arg, const struct roff_meta *mdoc)
print_mdoc_nodelist(p, NULL, mdoc, n);
term_newln(p);
} else {
- save_defindent = p->defindent;
- if (p->defindent == 0)
- p->defindent = 5;
term_begin(p, print_mdoc_head, print_mdoc_foot, mdoc);
while (n != NULL &&
(n->type == ROFFT_COMMENT ||
@@ -289,7 +285,6 @@ terminal_mdoc(void *arg, const struct roff_meta *mdoc)
print_mdoc_nodelist(p, NULL, mdoc, n);
}
term_end(p);
- p->defindent = save_defindent;
}
}