summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man_term.c4
-rw-r--r--mdoc_term.c5
2 files changed, 4 insertions, 5 deletions
diff --git a/man_term.c b/man_term.c
index e1fc9ac9..143a38dc 100644
--- a/man_term.c
+++ b/man_term.c
@@ -158,8 +158,7 @@ terminal_man(void *arg, const struct man *man)
p->overstep = 0;
p->maxrmargin = p->defrmargin;
-
- term_begin(p, print_man_head, print_man_foot, man_meta(man));
+ p->tabwidth = 5;
if (NULL == p->symtab)
switch (p->enc) {
@@ -174,6 +173,7 @@ terminal_man(void *arg, const struct man *man)
n = man_node(man);
m = man_meta(man);
+ term_begin(p, print_man_head, print_man_foot, m);
p->flags |= TERMP_NOSPACE;
mt.fl = 0;
diff --git a/mdoc_term.c b/mdoc_term.c
index 35c169d6..b9c61d01 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -276,9 +276,6 @@ terminal_mdoc(void *arg, const struct mdoc *mdoc)
p->maxrmargin = p->defrmargin;
p->tabwidth = 5;
- term_begin(p, print_mdoc_head,
- print_mdoc_foot, mdoc_meta(mdoc));
-
if (NULL == p->symtab)
switch (p->enc) {
case (TERMENC_ASCII):
@@ -292,6 +289,8 @@ terminal_mdoc(void *arg, const struct mdoc *mdoc)
n = mdoc_node(mdoc);
m = mdoc_meta(mdoc);
+ term_begin(p, print_mdoc_head, print_mdoc_foot, m);
+
if (n->child)
print_mdoc_nodelist(p, NULL, m, n->child);