From 941009cd11c1a322f38699c80949ef439ee2fb0d Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 11 Jan 2020 21:02:26 +0000 Subject: test tbl_term.c rev. 1.73 and tbl_data.c rev. 1.53: incomplete short layout lines followed by longer lines, and spans at the beginning of layout lines --- regress/tbl/layout/Makefile | 6 +++--- regress/tbl/layout/badspan.in | 13 +++++++++++++ regress/tbl/layout/badspan.out_ascii | 18 ++++++++++++++++++ regress/tbl/layout/badspan.out_lint | 1 + regress/tbl/layout/shortlines.in | 8 +++----- regress/tbl/layout/shortlines.out_ascii | 4 +--- 6 files changed, 39 insertions(+), 11 deletions(-) create mode 100644 regress/tbl/layout/badspan.in create mode 100644 regress/tbl/layout/badspan.out_ascii create mode 100644 regress/tbl/layout/badspan.out_lint (limited to 'regress/tbl/layout') diff --git a/regress/tbl/layout/Makefile b/regress/tbl/layout/Makefile index 1009d96e..2cff5851 100644 --- a/regress/tbl/layout/Makefile +++ b/regress/tbl/layout/Makefile @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile,v 1.5 2019/12/31 22:49:17 schwarze Exp $ +# $OpenBSD: Makefile,v 1.6 2020/01/11 20:56:26 schwarze Exp $ -REGRESS_TARGETS = center complex empty emptycol emptyline +REGRESS_TARGETS = badspan center complex empty emptycol emptyline REGRESS_TARGETS += lines lines-nogroff numbers shortlines span -LINT_TARGETS = complex empty +LINT_TARGETS = badspan complex empty # groff-1.22.3 defects: # - When the layout is completely empty, diff --git a/regress/tbl/layout/badspan.in b/regress/tbl/layout/badspan.in new file mode 100644 index 00000000..4d276450 --- /dev/null +++ b/regress/tbl/layout/badspan.in @@ -0,0 +1,13 @@ +.\" $OpenBSD: badspan.in,v 1.1 2020/01/11 20:56:26 schwarze Exp $ +.TH TBL-LAYOUT-BADSPAN 1 "January 11, 2020" +.SH NAME +tbl-layout-badspan \- invalid spanned cells +.SH DESCRIPTION +normal text +.TS +allbox tab(:); +S L S S +L L L L L L. +span:end +1:2:3:4:5:6 +.TE diff --git a/regress/tbl/layout/badspan.out_ascii b/regress/tbl/layout/badspan.out_ascii new file mode 100644 index 00000000..36d062dc --- /dev/null +++ b/regress/tbl/layout/badspan.out_ascii @@ -0,0 +1,18 @@ +TBL-LAYOUT-BADSPAN(1) General Commands Manual TBL-LAYOUT-BADSPAN(1) + + + +NNAAMMEE + tbl-layout-badspan - invalid spanned cells + +DDEESSCCRRIIPPTTIIOONN + normal text + + +--+-----------+-----+---+ + | | span | end | | + +--+---+---+---+-----+---+ + |1 | 2 | 3 | 4 | 5 | 6 | + +--+---+---+---+-----+---+ + + +OpenBSD January 11, 2020 TBL-LAYOUT-BADSPAN(1) diff --git a/regress/tbl/layout/badspan.out_lint b/regress/tbl/layout/badspan.out_lint new file mode 100644 index 00000000..883d5763 --- /dev/null +++ b/regress/tbl/layout/badspan.out_lint @@ -0,0 +1 @@ +mandoc: badspan.in:9:1: WARNING: tbl line starts with span diff --git a/regress/tbl/layout/shortlines.in b/regress/tbl/layout/shortlines.in index f6434619..85983c47 100644 --- a/regress/tbl/layout/shortlines.in +++ b/regress/tbl/layout/shortlines.in @@ -1,5 +1,5 @@ -.\" $OpenBSD: shortlines.in,v 1.1 2019/06/11 15:40:41 schwarze Exp $ -.TH TBL-LAYOUT-SHORTLINES 1 "June 11, 2019" +.\" $OpenBSD: shortlines.in,v 1.2 2020/01/11 20:56:26 schwarze Exp $ +.TH TBL-LAYOUT-SHORTLINES 1 "January 11, 2020" .SH NAME tbl-layout-shortlines \- table lines of different length .SH DESCRIPTION @@ -39,11 +39,9 @@ very short .TS allbox tab(:); L -L L +L L L L. very short short:line left:middle:right .TE - - diff --git a/regress/tbl/layout/shortlines.out_ascii b/regress/tbl/layout/shortlines.out_ascii index 02fe01d7..cb4e6148 100644 --- a/regress/tbl/layout/shortlines.out_ascii +++ b/regress/tbl/layout/shortlines.out_ascii @@ -43,6 +43,4 @@ DDEESSCCRRIIPPTTIIOONN +-----------+--------+-------+ - - -OpenBSD June 11, 2019 TBL-LAYOUT-SHORTLINES(1) +OpenBSD January 11, 2020 TBL-LAYOUT-SHORTLINES(1) -- cgit