diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-05-07 17:30:59 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-05-07 17:30:59 +0000 |
commit | 61e08b3ae1ef9c667611ead25bb473f9759fbb2b (patch) | |
tree | 69ea0dcafa67d4e8672f9209c6d7b889e0bdadac /usr.bin/mandoc/term.h | |
parent | 03e014232b141d938451aca6862f5d43f0594524 (diff) |
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/term.h')
-rw-r--r-- | usr.bin/mandoc/term.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/mandoc/term.h b/usr.bin/mandoc/term.h index 4b688de65d5..f2bcca05902 100644 --- a/usr.bin/mandoc/term.h +++ b/usr.bin/mandoc/term.h @@ -1,4 +1,4 @@ -/* $OpenBSD: term.h,v 1.63 2017/05/04 22:07:44 schwarze Exp $ */ +/* $OpenBSD: term.h,v 1.64 2017/05/07 17:30:58 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011-2015, 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -64,7 +64,6 @@ struct termp { size_t maxrmargin; /* Max right margin. */ size_t maxcols; /* Max size of buf. */ size_t offset; /* Margin offest. */ - size_t tabwidth; /* Distance of tab positions. */ size_t col; /* Bytes in buf. */ size_t viscol; /* Chars on current line. */ size_t trailspace; /* See termp_flushln(). */ @@ -130,6 +129,9 @@ int term_vspan(const struct termp *, const struct roffsu *); size_t term_strlen(const struct termp *, const char *); size_t term_len(const struct termp *, size_t); +void term_tab_set(const struct termp *, const char *); +size_t term_tab_next(size_t); + void term_fontpush(struct termp *, enum termfont); void term_fontpop(struct termp *); void term_fontpopq(struct termp *, int); |