From 72ffb5f81a5259c8b01aa48d71c3542bc8eed8d7 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 7 May 2017 17:31:45 +0000 Subject: 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@. --- man_term.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'man_term.c') diff --git a/man_term.c b/man_term.c index 41d13fc9..a96974f9 100644 --- a/man_term.c +++ b/man_term.c @@ -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 * Copyright (c) 2010-2015, 2017 Ingo Schwarze @@ -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); -- cgit v1.2.3-56-ge451