[BACK]Return to emptycol.in CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress / tbl / layout

File: [cvsweb.bsd.lv] / mandoc / regress / tbl / layout / emptycol.in (download)

Revision 1.1, Tue Dec 31 22:58:43 2019 UTC (4 years, 5 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6, HEAD

When all cells in a tbl(1) column are empty, set the column width
to 1n rather than to 0n, in the same way as groff does.
This fixes misformatting reported by bentley@ in xkeyboard-config(7).

.\" $OpenBSD: emptycol.in,v 1.1 2019/12/31 22:49:17 schwarze Exp $
.TH TBL-LAYOUT-EMPTYCOL 1 "December 31, 2019"
.SH NAME
tbl-layout-emptycol \- empty columns in tables
.SH DESCRIPTION
missing final column:
.TS
allbox tab(:);
L L L
L L.
1:2
a:b
.TE
.sp
empty final column:
.TS
allbox tab(:);
L L L
L L.
1:2:
a:b
.TE
.sp
final column with zero-width content:
.TS
allbox tab(:);
L L L
L L.
1:2:\&
a:b
.TE
.sp
empty middle column:
.TS
allbox tab(:);
L L L
L.
1::3
a
.TE
.sp
span crossing empty middle column:
.TS
allbox tab(:);
L L L
L S S.
1::3
span
.TE