summaryrefslogtreecommitdiffstats
path: root/regress/roff/ta
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-05-07 17:31:45 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-05-07 17:31:45 +0000
commitdf7add94ac0e6037b421b622febfdbe3236dad5c (patch)
treed3549eb68d21b93b68a624099f590ddb686ecfd9 /regress/roff/ta
parent412e48b8cba6db0a6b8eae7f848cfa460e0a315d (diff)
downloadmandoc-df7add94ac0e6037b421b622febfdbe3236dad5c.tar.gz
Basic implementation of the roff(7) .ta (define tab stops) request.
This is the first feature made possible by the parser reorganization. Improves the formatting of the SYNOPSIS in many Xenocara GL manuals. Also important for ports, as reported by many, including naddy@.
Diffstat (limited to 'regress/roff/ta')
-rw-r--r--regress/roff/ta/Makefile5
-rw-r--r--regress/roff/ta/basic-man.in19
-rw-r--r--regress/roff/ta/basic-man.out_ascii22
-rw-r--r--regress/roff/ta/basic-mdoc.in34
-rw-r--r--regress/roff/ta/basic-mdoc.out_ascii25
5 files changed, 105 insertions, 0 deletions
diff --git a/regress/roff/ta/Makefile b/regress/roff/ta/Makefile
new file mode 100644
index 00000000..656c5174
--- /dev/null
+++ b/regress/roff/ta/Makefile
@@ -0,0 +1,5 @@
+# $OpenBSD$
+
+REGRESS_TARGETS = basic-mdoc basic-man
+
+.include <bsd.regress.mk>
diff --git a/regress/roff/ta/basic-man.in b/regress/roff/ta/basic-man.in
new file mode 100644
index 00000000..f2f4641d
--- /dev/null
+++ b/regress/roff/ta/basic-man.in
@@ -0,0 +1,19 @@
+.TH TA-BASIC-MAN 1 "May 7, 2014" OpenBSD
+.SH NAME
+ta-basic-man \- setting tabstop positions in man(7)
+.SH DESCRIPTION
+.nf
+default:
+1 2 3
+10n:
+.ta 10n
+1 2 3
+none:
+.ta
+1 2 3
+3n +6n T 4n +2n:
+.ta 3n +6n T 4n +2n
+1 2 3 4 5 6 7 8 9
+default unit:
+.ta 3 +4 12
+1 2 3 4
diff --git a/regress/roff/ta/basic-man.out_ascii b/regress/roff/ta/basic-man.out_ascii
new file mode 100644
index 00000000..37062245
--- /dev/null
+++ b/regress/roff/ta/basic-man.out_ascii
@@ -0,0 +1,22 @@
+TA-BASIC-MAN(1) General Commands Manual TA-BASIC-MAN(1)
+
+
+
+NNAAMMEE
+ ta-basic-man - setting tabstop positions in man(7)
+
+DDEESSCCRRIIPPTTIIOONN
+ default:
+ 1 2 3
+ 10n:
+ 1 23
+ none:
+ 123
+ 3n +6n T 4n +2n:
+ 1 2 3 4 5 6 7 8 9
+ default unit:
+ 1 2 3 4
+
+
+
+OpenBSD May 7, 2014 TA-BASIC-MAN(1)
diff --git a/regress/roff/ta/basic-mdoc.in b/regress/roff/ta/basic-mdoc.in
new file mode 100644
index 00000000..24c83bd4
--- /dev/null
+++ b/regress/roff/ta/basic-mdoc.in
@@ -0,0 +1,34 @@
+.Dd May 7, 2017
+.Dt TA-BASIC-MDOC 1
+.Os OpenBSD
+.Sh NAME
+.Nm ta-basic-mdoc
+.Nd setting tabstop positions in mdoc(7)
+.Sh DESCRIPTION
+.Bd -unfilled
+default:
+1 2 3
+10n:
+.ta 10n
+1 2 3
+none:
+.ta
+1 2 3
+3n +6n T 4n +2n:
+.ta 3n +6n T 4n +2n
+1 2 3 4 5 6 7 8 9
+.Ed
+.Pp
+literal:
+.Bd -literal -compact
+1 2 3
+.Ed
+.Pp
+after literal:
+.br
+1 2 3
+.Pp
+default unit:
+.br
+.ta 3 +4 12
+1 2 3 4
diff --git a/regress/roff/ta/basic-mdoc.out_ascii b/regress/roff/ta/basic-mdoc.out_ascii
new file mode 100644
index 00000000..83feb627
--- /dev/null
+++ b/regress/roff/ta/basic-mdoc.out_ascii
@@ -0,0 +1,25 @@
+TA-BASIC-MDOC(1) General Commands Manual TA-BASIC-MDOC(1)
+
+NNAAMMEE
+ ttaa--bbaassiicc--mmddoocc - setting tabstop positions in mdoc(7)
+
+DDEESSCCRRIIPPTTIIOONN
+ default:
+ 1 2 3
+ 10n:
+ 1 23
+ none:
+ 123
+ 3n +6n T 4n +2n:
+ 1 2 3 4 5 6 7 8 9
+
+ literal:
+ 1 2 3
+
+ after literal:
+ 1 2 3
+
+ default unit:
+ 1 2 3 4
+
+OpenBSD May 7, 2017 OpenBSD