diff options
author | 2017-05-07 17:30:58 +0000 | |
---|---|---|
committer | 2017-05-07 17:30:58 +0000 | |
commit | f7242c43b2490edb033d5e26b3d5c542f5982c75 (patch) | |
tree | 6c68f3053717297582a6bd85cf85b8f40ab2a942 /usr.bin/mandoc/man_term.c | |
parent | Don't allow a negative process group ID, it would turn into a (diff) | |
download | wireguard-openbsd-f7242c43b2490edb033d5e26b3d5c542f5982c75.tar.xz wireguard-openbsd-f7242c43b2490edb033d5e26b3d5c542f5982c75.zip |
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 'usr.bin/mandoc/man_term.c')
-rw-r--r-- | usr.bin/mandoc/man_term.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/mandoc/man_term.c b/usr.bin/mandoc/man_term.c index 4c7d332b6a3..64ce13ed70d 100644 --- a/usr.bin/mandoc/man_term.c +++ b/usr.bin/mandoc/man_term.c @@ -1,4 +1,4 @@ -/* $OpenBSD: man_term.c,v 1.150 2017/05/05 15:16:25 schwarze Exp $ */ +/* $OpenBSD: man_term.c,v 1.151 2017/05/07 17:30:58 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2015, 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -140,7 +140,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); |