1234567 90
T}
.TE
+.sp
+leaked tab settings:
+.br
+\& b c d e f g h
|a | b | c | d | e | f | g | 1234567 |
| | | | | | | | 90 |
+--+---+---+---+---+---+---+-----------+
+ leaked tab settings:
+ b c d e f g h
+
OpenBSD June 15, 2017 OpenBSD
****:****:****
*****:*****:*****
.TE
+.sp
+leaked tab settings:
+.br
+a b c de
**** **** ****
***** ***** *****
+ leaked tab settings:
+ a b c de
+
TBL-LAYOUT-CENTER(1)
s1:s2
a:b:c:d:e
.TE
+.sp
+leaked tab settings:
+.br
+a b c d e f
+--+---+---+---+---+
|a | b | c | d | e |
+--+---+---+---+---+
+ leaked tab settings:
+ a b c d e f
+
TBL-LAYOUT-SPAN(1)
lx lx lx lx lx l rx.
x:x:x:x:x:123456789012345678901234567890123456789012:x
.TE
+.sp
+.nf
+leaked tab settings:
+.br
+a b c d e f g h
+.fi
x x x x x 123456789012345678901234567890123456789012 x
+ leaked tab settings:
+ a b c d e f g h
+
OpenBSD January 27, 2015 TBL-MOD-EXPAND(1)
italic:roman:bold
and:so:on
.TE
+.sp
+leaked tab settings:
+.br
+a b c d e
|_\bi_\bt_\ba_\bl_\bi_\bc | roman | b\bbo\bol\bld\bd |
| _\ba_\bn_\bd | so | o\bon\bn |
+-------+-------+--------+
+ leaked tab settings:
+ a b c de
+
OpenBSD February 10, 2015 TBL-MOD-FONT(1)
mandoc: font.in:8:6: WARNING: unknown font, skipping request: TS fCW|ci
+mandoc: font.in:18:2: WARNING: tab in filled text
+mandoc: font.in:18:4: WARNING: tab in filled text
+mandoc: font.in:18:6: WARNING: tab in filled text
+mandoc: font.in:18:8: WARNING: tab in filled text
-/* $OpenBSD: tbl_term.c,v 1.41 2017/06/16 20:00:41 schwarze Exp $ */
+/* $OpenBSD: tbl_term.c,v 1.42 2017/06/17 14:55:02 schwarze Exp $ */
/*
* Copyright (c) 2009, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011,2012,2014,2015,2017 Ingo Schwarze <schwarze@openbsd.org>
tblcalc(&tp->tbl, sp, tp->tcol->offset, tp->tcol->rmargin);
+ /* Tables leak .ta settings to subsequent text. */
+
+ term_tab_set(tp, NULL);
+ coloff = sp->opts->opts & (TBL_OPT_BOX | TBL_OPT_DBOX) ||
+ sp->opts->lvert;
+ for (ic = 0; ic < sp->opts->cols; ic++) {
+ coloff += tp->tbl.cols[ic].width;
+ term_tab_iset(coloff);
+ coloff += 3;
+ }
+
/* Center the table as a whole. */
offset = tp->tcol->offset;
-/* $OpenBSD: term.h,v 1.72 2017/06/14 17:50:43 schwarze Exp $ */
+/* $OpenBSD: term.h,v 1.73 2017/06/17 14:55:02 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011-2015, 2017 Ingo Schwarze <schwarze@openbsd.org>
size_t term_len(const struct termp *, size_t);
void term_tab_set(const struct termp *, const char *);
+void term_tab_iset(size_t);
size_t term_tab_next(size_t);
void term_fontpush(struct termp *, enum termfont);
-/* $OpenBSD: term_tab.c,v 1.3 2017/06/14 17:50:43 schwarze Exp $ */
+/* $OpenBSD: term_tab.c,v 1.4 2017/06/17 14:55:02 schwarze Exp $ */
/*
* Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org>
*
tl->n++;
}
+/*
+ * Simplified version without a parser,
+ * never incremental, never periodic, for use by tbl(7).
+ */
+void
+term_tab_iset(size_t inc)
+{
+ if (tabs.a.n >= tabs.a.s) {
+ tabs.a.s += 8;
+ tabs.a.t = mandoc_reallocarray(tabs.a.t, tabs.a.s,
+ sizeof(*tabs.a.t));
+ }
+ tabs.a.t[tabs.a.n++] = inc;
+}
+
size_t
term_tab_next(size_t prev)
{