aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-07-04 21:08:29 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-07-04 21:08:29 +0000
commitbd583bd3f95456437bb2299aad23115a3fe82c04 (patch)
tree10b19e25431fe87f35e906e391bd9a36ab572aac /regress
parenta49604fa42153d7e99b1b503a559ca4887d6d57c (diff)
downloadmandoc-bd583bd3f95456437bb2299aad23115a3fe82c04.tar.gz
mandoc-bd583bd3f95456437bb2299aad23115a3fe82c04.tar.zst
mandoc-bd583bd3f95456437bb2299aad23115a3fe82c04.zip
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')
-rw-r--r--regress/tbl/data/Makefile6
-rw-r--r--regress/tbl/data/insert.in21
-rw-r--r--regress/tbl/data/insert.out_ascii22
-rw-r--r--regress/tbl/data/insert.out_lint2
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