summaryrefslogtreecommitdiffstats
path: root/regress/tbl/opt
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2019-01-31 16:31:55 +0000
committerIngo Schwarze <schwarze@openbsd.org>2019-01-31 16:31:55 +0000
commit547b554dc9c25cb33ee6ef76d63668fc75a26685 (patch)
tree97990bc27bb618683a688f94e8623e44cb8fb98f /regress/tbl/opt
parent338daed9057fec44c6861151bafb7a548b241d19 (diff)
downloadmandoc-547b554dc9c25cb33ee6ef76d63668fc75a26685.tar.gz
Since resetting of offsets works quite differently in man(7) and mdoc(7),
test table centering in an mdoc(7) document as well. Related to tbl_term.c rev. 1.67.
Diffstat (limited to 'regress/tbl/opt')
-rw-r--r--regress/tbl/opt/Makefile4
-rw-r--r--regress/tbl/opt/center-mdoc.in15
-rw-r--r--regress/tbl/opt/center-mdoc.out_ascii12
3 files changed, 29 insertions, 2 deletions
diff --git a/regress/tbl/opt/Makefile b/regress/tbl/opt/Makefile
index ed9676b5..4e101194 100644
--- a/regress/tbl/opt/Makefile
+++ b/regress/tbl/opt/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.1.1.1 2015/01/29 23:24:24 schwarze Exp $
+# $OpenBSD: Makefile,v 1.2 2019/01/31 16:28:38 schwarze Exp $
-REGRESS_TARGETS = box center invalid
+REGRESS_TARGETS = box center center-mdoc invalid
LINT_TARGETS = invalid
.include <bsd.regress.mk>
diff --git a/regress/tbl/opt/center-mdoc.in b/regress/tbl/opt/center-mdoc.in
new file mode 100644
index 00000000..820664c3
--- /dev/null
+++ b/regress/tbl/opt/center-mdoc.in
@@ -0,0 +1,15 @@
+.\" $OpenBSD: center-mdoc.in,v 1.1 2019/01/31 16:28:38 schwarze Exp $
+.Dd $Mdocdate$
+.Dt TBL-CENTER-MDOC 1
+.Os
+.Sh NAME
+.Nm tbl-center-mdoc
+.Nd center a table as a whole
+.Sh DESCRIPTION
+normal text
+.TS
+center box tab(:);
+l r.
+northwest:northeast
+southwest:southeast
+.TE
diff --git a/regress/tbl/opt/center-mdoc.out_ascii b/regress/tbl/opt/center-mdoc.out_ascii
new file mode 100644
index 00000000..615d7f33
--- /dev/null
+++ b/regress/tbl/opt/center-mdoc.out_ascii
@@ -0,0 +1,12 @@
+TBL-CENTER-MDOC(1) General Commands Manual TBL-CENTER-MDOC(1)
+
+NNAAMMEE
+ ttbbll--cceenntteerr--mmddoocc - center a table as a whole
+
+DDEESSCCRRIIPPTTIIOONN
+ normal text
+ +----------------------+
+ |northwest northeast |
+ |southwest southeast |
+ +----------------------+
+OpenBSD January 31, 2019 OpenBSD