aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit1fb324c74addc6d44298e987ea42e5d66981c0a3 (patch)
tree137027e469bbb4280efac61cddf12826891610f4
parente48916572d460eabf5caba13209f08f8d94d9980 (diff)
downloadmandoc-1fb324c74addc6d44298e987ea42e5d66981c0a3.tar.gz
mandoc-1fb324c74addc6d44298e987ea42e5d66981c0a3.tar.zst
mandoc-1fb324c74addc6d44298e987ea42e5d66981c0a3.zip
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.
-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..850ba910
--- /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: 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/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