summaryrefslogtreecommitdiffstats
path: root/man_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-05-07 17:31:45 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-05-07 17:31:45 +0000
commitdf7add94ac0e6037b421b622febfdbe3236dad5c (patch)
treed3549eb68d21b93b68a624099f590ddb686ecfd9 /man_term.c
parent412e48b8cba6db0a6b8eae7f848cfa460e0a315d (diff)
downloadmandoc-df7add94ac0e6037b421b622febfdbe3236dad5c.tar.gz
Basic implementation of the roff(7) .ta (define tab stops) request.
This is the first feature made possible by the parser reorganization. Improves the formatting of the SYNOPSIS in many Xenocara GL manuals. Also important for ports, as reported by many, including naddy@.
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/man_term.c b/man_term.c
index 19ce0eb8..653788ff 100644
--- a/man_term.c
+++ b/man_term.c
@@ -142,7 +142,9 @@ terminal_man(void *arg, const struct roff_man *man)
p = (struct termp *)arg;
p->overstep = 0;
p->rmargin = p->maxrmargin = p->defrmargin;
- p->tabwidth = term_len(p, 5);
+ term_tab_set(p, NULL);
+ term_tab_set(p, "T");
+ term_tab_set(p, ".5i");
memset(&mt, 0, sizeof(struct mtermp));
mt.lmargin[mt.lmargincur] = term_len(p, p->defindent);