summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mandoc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2019-07-18 14:38:48 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2019-07-18 14:38:48 +0000
commitadf15bacd1570a98b885c164a006b7743181236d (patch)
treeb84325a5221ddf3179091691e7a96a8a7d303b38 /regress/usr.bin/mandoc
parentedabb16a9a972cb68a6ca4e239035cc8cd40b9db (diff)
new test for an empty text block; from rea@ via bapt@ (FreeBSD)
Diffstat (limited to 'regress/usr.bin/mandoc')
-rw-r--r--regress/usr.bin/mandoc/tbl/data/Makefile5
-rw-r--r--regress/usr.bin/mandoc/tbl/data/block_empty.in19
-rw-r--r--regress/usr.bin/mandoc/tbl/data/block_empty.out_ascii22
3 files changed, 44 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/tbl/data/Makefile b/regress/usr.bin/mandoc/tbl/data/Makefile
index 07a5573d4c0..b1dcfa08114 100644
--- a/regress/usr.bin/mandoc/tbl/data/Makefile
+++ b/regress/usr.bin/mandoc/tbl/data/Makefile
@@ -1,6 +1,7 @@
-# $OpenBSD: Makefile,v 1.4 2017/07/04 20:59:17 schwarze Exp $
+# $OpenBSD: Makefile,v 1.5 2019/07/18 14:38:47 schwarze Exp $
-REGRESS_TARGETS = blankline block_unclosed block_width block_wrap empty insert
+REGRESS_TARGETS = blankline block_empty block_unclosed block_width
+REGRESS_TARGETS += block_wrap empty insert
LINT_TARGETS = block_unclosed empty insert
# groff-1.22.3 defect:
diff --git a/regress/usr.bin/mandoc/tbl/data/block_empty.in b/regress/usr.bin/mandoc/tbl/data/block_empty.in
new file mode 100644
index 00000000000..cab27c62549
--- /dev/null
+++ b/regress/usr.bin/mandoc/tbl/data/block_empty.in
@@ -0,0 +1,19 @@
+.\" $OpenBSD: block_empty.in,v 1.1 2019/07/18 14:38:47 schwarze Exp $
+.TH TBL-DATA-BLOCK_EMPTY 1 "July 17, 2019"
+.SH NAME
+tbl-data-block_empty \- empty text block
+.SH DESCRIPTION
+normal text
+.TS
+|l|l|.
+_
+A test
+_
+table T{
+T}
+_
+.TE
+.SH AUTHORS
+.MT rea@FreeBSD.org
+Eygene Ryabinkin
+.ME
diff --git a/regress/usr.bin/mandoc/tbl/data/block_empty.out_ascii b/regress/usr.bin/mandoc/tbl/data/block_empty.out_ascii
new file mode 100644
index 00000000000..2c76dbd879c
--- /dev/null
+++ b/regress/usr.bin/mandoc/tbl/data/block_empty.out_ascii
@@ -0,0 +1,22 @@
+TBL-DATA-BLOCK_EMPTY(1) General Commands Manual TBL-DATA-BLOCK_EMPTY(1)
+
+
+
+NNAAMMEE
+ tbl-data-block_empty - empty text block
+
+DDEESSCCRRIIPPTTIIOONN
+ normal text
+
+ +------+------+
+ |A | test |
+ +------+------+
+ |table | |
+ +------+------+
+
+AAUUTTHHOORRSS
+ Eygene Ryabinkin <rea@FreeBSD.org>
+
+
+
+OpenBSD July 17, 2019 TBL-DATA-BLOCK_EMPTY(1)