diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-07-04 21:08:29 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-07-04 21:08:29 +0000 |
commit | 5341a1c8ccff685f8aeaa889962ec2dd4b718df8 (patch) | |
tree | 853546661afa1b9615db1111c2a27c0555cc8faf /regress/tbl | |
parent | 864aed49c1c432f1295b9a2429e94b05550653db (diff) | |
download | mandoc-5341a1c8ccff685f8aeaa889962ec2dd4b718df8.tar.gz |
It turns out association of tbl spans with layout rows is simpler than
i thought. Fixing a bug in curs_addch(3) and minus 25 lines of code.
Diffstat (limited to 'regress/tbl')
-rw-r--r-- | regress/tbl/data/Makefile | 6 | ||||
-rw-r--r-- | regress/tbl/data/insert.in | 21 | ||||
-rw-r--r-- | regress/tbl/data/insert.out_ascii | 22 | ||||
-rw-r--r-- | regress/tbl/data/insert.out_lint | 2 |
4 files changed, 48 insertions, 3 deletions
diff --git a/regress/tbl/data/Makefile b/regress/tbl/data/Makefile index 0fc59557..07a5573d 100644 --- a/regress/tbl/data/Makefile +++ b/regress/tbl/data/Makefile @@ -1,7 +1,7 @@ -# $OpenBSD: Makefile,v 1.1.1.1 2015/01/29 23:24:24 schwarze Exp $ +# $OpenBSD: Makefile,v 1.4 2017/07/04 20:59:17 schwarze Exp $ -REGRESS_TARGETS = blankline block_unclosed block_width block_wrap empty -LINT_TARGETS = block_unclosed empty +REGRESS_TARGETS = blankline block_unclosed block_width block_wrap empty insert +LINT_TARGETS = block_unclosed empty insert # groff-1.22.3 defect: # - When a table ends in the middle of a block, diff --git a/regress/tbl/data/insert.in b/regress/tbl/data/insert.in new file mode 100644 index 00000000..942a4961 --- /dev/null +++ b/regress/tbl/data/insert.in @@ -0,0 +1,21 @@ +.\" $OpenBSD: insert.in,v 1.1 2017/07/04 20:59:17 schwarze Exp $ +.TH TBL-DATA-INSERT 1 "July 4, 2017" +.SH NAME +tbl-data-insert \- insertion of empty spans for line-only layout rows +.SH DESCRIPTION +initial text +.TS +tab(:); +_ _ +l l +- - +l r +_ ^ +r. +colum one:column two +left:right +not:printed +right:left +.TE +.sp +final text diff --git a/regress/tbl/data/insert.out_ascii b/regress/tbl/data/insert.out_ascii new file mode 100644 index 00000000..50ce3484 --- /dev/null +++ b/regress/tbl/data/insert.out_ascii @@ -0,0 +1,22 @@ +TBL-DATA-INSERT(1) General Commands Manual TBL-DATA-INSERT(1) + + + +NNAAMMEE + tbl-data-insert - insertion of empty spans for line-only layout rows + +DDEESSCCRRIIPPTTIIOONN + initial text + + ----------------------- + colum one column two + ----------------------- + left right + ----------- + right left + + final text + + + +OpenBSD July 4, 2017 TBL-DATA-INSERT(1) diff --git a/regress/tbl/data/insert.out_lint b/regress/tbl/data/insert.out_lint new file mode 100644 index 00000000..380b5e6b --- /dev/null +++ b/regress/tbl/data/insert.out_lint @@ -0,0 +1,2 @@ +mandoc: insert.in:17:1: ERROR: ignoring data in spanned tbl cell: not +mandoc: insert.in:17:5: ERROR: ignoring data in spanned tbl cell: printed |