aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/tbl/layout/emptycol.in
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2019-12-31 22:58:41 +0000
committerIngo Schwarze <schwarze@openbsd.org>2019-12-31 22:58:41 +0000
commit5a317ea1cdb4526d1f081d9c2176e90001bdc79c (patch)
tree373e7210f5a3f0d7c3da04418f675900837a058d /regress/tbl/layout/emptycol.in
parentb790074f54bc970c3e4ef82aad5e8ce6f7fba5b3 (diff)
downloadmandoc-5a317ea1cdb4526d1f081d9c2176e90001bdc79c.tar.gz
mandoc-5a317ea1cdb4526d1f081d9c2176e90001bdc79c.zip
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).
Diffstat (limited to 'regress/tbl/layout/emptycol.in')
-rw-r--r--regress/tbl/layout/emptycol.in49
1 files changed, 49 insertions, 0 deletions
diff --git a/regress/tbl/layout/emptycol.in b/regress/tbl/layout/emptycol.in
new file mode 100644
index 00000000..090d9004
--- /dev/null
+++ b/regress/tbl/layout/emptycol.in
@@ -0,0 +1,49 @@
+.\" $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