From 487d956e07013bc929ab478a0503246df414b00a Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 8 Jun 2017 18:11:22 +0000 Subject: 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. --- regress/tbl/mod/Makefile | 2 +- regress/tbl/mod/width.in | 14 ++++++++++++++ regress/tbl/mod/width.out_ascii | 16 ++++++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 regress/tbl/mod/width.in create mode 100644 regress/tbl/mod/width.out_ascii (limited to 'regress/tbl/mod') 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) -- cgit v1.2.3-56-ge451