diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-05-07 17:31:45 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-05-07 17:31:45 +0000 |
commit | df7add94ac0e6037b421b622febfdbe3236dad5c (patch) | |
tree | d3549eb68d21b93b68a624099f590ddb686ecfd9 /man_term.c | |
parent | 412e48b8cba6db0a6b8eae7f848cfa460e0a315d (diff) | |
download | mandoc-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |