diff options
author | 2017-05-07 17:31:45 +0000 | |
---|---|---|
committer | 2017-05-07 17:31:45 +0000 | |
commit | 72ffb5f81a5259c8b01aa48d71c3542bc8eed8d7 (patch) | |
tree | 31fa6b4a1d8a875e8da528874a5b9907e452f853 /man_term.c | |
parent | 3bbe9ca77bfa0a811b6ac068444fadfbb440cb8e (diff) | |
download | mandoc-72ffb5f81a5259c8b01aa48d71c3542bc8eed8d7.tar.gz mandoc-72ffb5f81a5259c8b01aa48d71c3542bc8eed8d7.tar.zst mandoc-72ffb5f81a5259c8b01aa48d71c3542bc8eed8d7.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 'man_term.c')
-rw-r--r-- | man_term.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.197 2017/05/05 15:17:32 schwarze Exp $ */ +/* $Id: man_term.c,v 1.198 2017/05/07 17:31:45 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2015, 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -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); |