summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mandoc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2019-01-31 16:28:39 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2019-01-31 16:28:39 +0000
commitb71367d6897080ef3792ee29354b84cca8b78a0a (patch)
tree6ba58edba089d5e2bd0cfd6e4d3f0b623aa8de67 /regress/usr.bin/mandoc
parent67e9e4bbfcb6b3a6d2dd6ab57915b05722035035 (diff)
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.55.
Diffstat (limited to 'regress/usr.bin/mandoc')
-rw-r--r--regress/usr.bin/mandoc/tbl/opt/Makefile4
-rw-r--r--regress/usr.bin/mandoc/tbl/opt/center-mdoc.in15
-rw-r--r--regress/usr.bin/mandoc/tbl/opt/center-mdoc.out_ascii12
3 files changed, 29 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/tbl/opt/Makefile b/regress/usr.bin/mandoc/tbl/opt/Makefile
index 650cb43ea49..4e101194742 100644
--- a/regress/usr.bin/mandoc/tbl/opt/Makefile
+++ b/regress/usr.bin/mandoc/tbl/opt/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 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/usr.bin/mandoc/tbl/opt/center-mdoc.in b/regress/usr.bin/mandoc/tbl/opt/center-mdoc.in
new file mode 100644
index 00000000000..850ba910502
--- /dev/null
+++ b/regress/usr.bin/mandoc/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: January 31 2019 $
+.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/usr.bin/mandoc/tbl/opt/center-mdoc.out_ascii b/regress/usr.bin/mandoc/tbl/opt/center-mdoc.out_ascii
new file mode 100644
index 00000000000..615d7f3355a
--- /dev/null
+++ b/regress/usr.bin/mandoc/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