From 1fb324c74addc6d44298e987ea42e5d66981c0a3 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 31 Jan 2019 16:31:55 +0000 Subject: 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. --- regress/tbl/opt/Makefile | 4 ++-- regress/tbl/opt/center-mdoc.in | 15 +++++++++++++++ regress/tbl/opt/center-mdoc.out_ascii | 12 ++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 regress/tbl/opt/center-mdoc.in create mode 100644 regress/tbl/opt/center-mdoc.out_ascii 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 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 -- cgit v1.2.3-56-ge451