summaryrefslogtreecommitdiffstats
path: root/regress/tbl
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-06-08 18:11:22 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-06-08 18:11:22 +0000
commit3fb3595e2dd4a3aa729120f074bd64eba84f7a4d (patch)
tree8f51ea63f0dd3f7cace9bf94c0855d51bc4258ba /regress/tbl
parentad29d8dbe925e8f0d680007ebf3c95aec8351f84 (diff)
downloadmandoc-3fb3595e2dd4a3aa729120f074bd64eba84f7a4d.tar.gz
Implement w layout specifier (minimum column width).
Improve width calculation of text blocks. Reduces the groff/mandoc diff in Base+Xenocara by about 800 lines.
Diffstat (limited to 'regress/tbl')
-rw-r--r--regress/tbl/mod/Makefile2
-rw-r--r--regress/tbl/mod/width.in14
-rw-r--r--regress/tbl/mod/width.out_ascii16
3 files changed, 31 insertions, 1 deletions
diff --git a/regress/tbl/mod/Makefile b/regress/tbl/mod/Makefile
index 04eec17e..09f98bf1 100644
--- a/regress/tbl/mod/Makefile
+++ b/regress/tbl/mod/Makefile
@@ -1,6 +1,6 @@
# $OpenBSD: Makefile,v 1.2 2015/02/10 11:02:19 schwarze Exp $
-REGRESS_TARGETS = badfont expand expand-toowide font misalign
+REGRESS_TARGETS = badfont expand expand-toowide font misalign width
LINT_TARGETS = badfont font
# groff-1.22.3 defects:
diff --git a/regress/tbl/mod/width.in b/regress/tbl/mod/width.in
new file mode 100644
index 00000000..702dd19e
--- /dev/null
+++ b/regress/tbl/mod/width.in
@@ -0,0 +1,14 @@
+.TH TBL-MOD-WIDTH 1 "June 8, 2017" OpenBSD
+.SH NAME
+tbl-mod-width \- width modifier in table layout
+.SH DESCRIPTION
+normal text
+.TS
+box tab(:);
+lw2 | lw(2n) | lw(0.2i) | lw2 .
+a:abcd:T{
+a
+T}:T{
+.SM abcd
+T}
+.TE
diff --git a/regress/tbl/mod/width.out_ascii b/regress/tbl/mod/width.out_ascii
new file mode 100644
index 00000000..8ff6bf19
--- /dev/null
+++ b/regress/tbl/mod/width.out_ascii
@@ -0,0 +1,16 @@
+TBL-MOD-WIDTH(1) General Commands Manual TBL-MOD-WIDTH(1)
+
+
+
+NNAAMMEE
+ tbl-mod-width - width modifier in table layout
+
+DDEESSCCRRIIPPTTIIOONN
+ normal text
+
+ +---+------+----+------+
+ |a | abcd | a | abcd |
+ +---+------+----+------+
+
+
+OpenBSD June 8, 2017 TBL-MOD-WIDTH(1)