summaryrefslogtreecommitdiffstats
path: root/regress/man/TP
diff options
context:
space:
mode:
Diffstat (limited to 'regress/man/TP')
-rw-r--r--regress/man/TP/Makefile14
-rw-r--r--regress/man/TP/badarg.in20
-rw-r--r--regress/man/TP/badarg.out_ascii22
-rw-r--r--regress/man/TP/broken.in13
-rw-r--r--regress/man/TP/broken.out_ascii15
-rw-r--r--regress/man/TP/broken.out_lint1
-rw-r--r--regress/man/TP/double.in40
-rw-r--r--regress/man/TP/double.out_ascii39
-rw-r--r--regress/man/TP/double.out_lint5
-rw-r--r--regress/man/TP/eof.in6
-rw-r--r--regress/man/TP/eof.out_ascii13
-rw-r--r--regress/man/TP/eof.out_lint1
-rw-r--r--regress/man/TP/fill.in16
-rw-r--r--regress/man/TP/fill.out_ascii21
-rw-r--r--regress/man/TP/literal.in26
-rw-r--r--regress/man/TP/literal.out_ascii26
-rw-r--r--regress/man/TP/longhead.in11
-rw-r--r--regress/man/TP/longhead.out_ascii19
-rw-r--r--regress/man/TP/macrotag.in13
-rw-r--r--regress/man/TP/macrotag.out_ascii18
-rw-r--r--regress/man/TP/manyargs.in45
-rw-r--r--regress/man/TP/manyargs.out_ascii40
-rw-r--r--regress/man/TP/sameline.in30
-rw-r--r--regress/man/TP/sameline.out_ascii29
-rw-r--r--regress/man/TP/spacing.in42
-rw-r--r--regress/man/TP/spacing.out_ascii43
-rw-r--r--regress/man/TP/width.in89
-rw-r--r--regress/man/TP/width.out_ascii81
28 files changed, 738 insertions, 0 deletions
diff --git a/regress/man/TP/Makefile b/regress/man/TP/Makefile
new file mode 100644
index 00000000..b867ba63
--- /dev/null
+++ b/regress/man/TP/Makefile
@@ -0,0 +1,14 @@
+# $OpenBSD: Makefile,v 1.12 2015/09/21 13:24:32 schwarze Exp $
+
+REGRESS_TARGETS = badarg broken double eof fill literal longhead
+REGRESS_TARGETS += macrotag manyargs sameline spacing width
+
+LINT_TARGETS = broken double eof
+
+# groff-1.22.3 defects:
+# - If .TP precedes .RE, the latter does not properly reset indentation.
+# - If the last line of the file is .TP, groff does not print a page footer.
+
+SKIP_GROFF = broken eof
+
+.include <bsd.regress.mk>
diff --git a/regress/man/TP/badarg.in b/regress/man/TP/badarg.in
new file mode 100644
index 00000000..d40759e2
--- /dev/null
+++ b/regress/man/TP/badarg.in
@@ -0,0 +1,20 @@
+.TH TP-BADARG 1 "November 18, 2012" OpenBSD
+.SH NAME
+TP-badarg \- invalid width specification for tagged paragraph
+.SH DESCRIPTION
+Non-numeric width specifications are ignored:
+.TP x
+tag
+indented
+.br
+text
+.TP xxxxx
+tag
+indented
+.br
+text
+.TP xxxxxxxxxx
+tag
+indented
+.br
+text
diff --git a/regress/man/TP/badarg.out_ascii b/regress/man/TP/badarg.out_ascii
new file mode 100644
index 00000000..f5b0a15a
--- /dev/null
+++ b/regress/man/TP/badarg.out_ascii
@@ -0,0 +1,22 @@
+TP-BADARG(1) General Commands Manual TP-BADARG(1)
+
+
+
+NNAAMMEE
+ TP-badarg - invalid width specification for tagged paragraph
+
+DDEESSCCRRIIPPTTIIOONN
+ Non-numeric width specifications are ignored:
+
+ tag indented
+ text
+
+ tag indented
+ text
+
+ tag indented
+ text
+
+
+
+OpenBSD November 18, 2012 TP-BADARG(1)
diff --git a/regress/man/TP/broken.in b/regress/man/TP/broken.in
new file mode 100644
index 00000000..c111caeb
--- /dev/null
+++ b/regress/man/TP/broken.in
@@ -0,0 +1,13 @@
+.TH TP-BROKEN 1 "December 16, 2014" OpenBSD
+.SH NAME
+TP-broken \- broken tagged paragraph
+.SH DESCRIPTION
+regular
+text
+.RS 4n
+indented
+text
+.TP
+.RE
+regular
+text
diff --git a/regress/man/TP/broken.out_ascii b/regress/man/TP/broken.out_ascii
new file mode 100644
index 00000000..e19efdf0
--- /dev/null
+++ b/regress/man/TP/broken.out_ascii
@@ -0,0 +1,15 @@
+TP-BROKEN(1) General Commands Manual TP-BROKEN(1)
+
+
+
+NNAAMMEE
+ TP-broken - broken tagged paragraph
+
+DDEESSCCRRIIPPTTIIOONN
+ regular text
+ indented text
+ regular text
+
+
+
+OpenBSD December 16, 2014 TP-BROKEN(1)
diff --git a/regress/man/TP/broken.out_lint b/regress/man/TP/broken.out_lint
new file mode 100644
index 00000000..3a1024fc
--- /dev/null
+++ b/regress/man/TP/broken.out_lint
@@ -0,0 +1 @@
+mandoc: broken.in:10:2: WARNING: line scope broken: RE breaks TP
diff --git a/regress/man/TP/double.in b/regress/man/TP/double.in
new file mode 100644
index 00000000..4a6b1674
--- /dev/null
+++ b/regress/man/TP/double.in
@@ -0,0 +1,40 @@
+.TH TP-DOUBLE 1 2013-06-23 OpenBSD
+.SH NAME
+TP-double \- effect of double tagged paragraph
+.SH DESCRIPTION
+leading text:
+This is a rather long text because we want to test the text width;
+at which point will this text wrap to the next line?
+.TP 16n
+first TP
+This is a rather long text because we want to test the text width;
+at which point will this text wrap to the next line?
+.TP 16n
+second TP
+This is a rather long text because we want to test the text width;
+at which point will this text wrap to the next line?
+.PP
+normal paragraph:
+This is a rather long text because we want to test the text width;
+at which point will this text wrap to the next line?
+.PP
+.TP 16n
+.TP 16n
+double TP
+This is a rather long text because we want to test the text width;
+at which point will this text wrap to the next line?
+.PP
+normal paragraph:
+This is a rather long text because we want to test the text width;
+at which point will this text wrap to the next line?
+.B
+.PP
+.TP 16n
+.TP 16n
+double TP
+This is a rather long text because we want to test the text width;
+at which point will this text wrap to the next line?
+.PP
+normal paragraph:
+This is a rather long text because we want to test the text width;
+at which point will this text wrap to the next line?
diff --git a/regress/man/TP/double.out_ascii b/regress/man/TP/double.out_ascii
new file mode 100644
index 00000000..63c5e9db
--- /dev/null
+++ b/regress/man/TP/double.out_ascii
@@ -0,0 +1,39 @@
+TP-DOUBLE(1) General Commands Manual TP-DOUBLE(1)
+
+
+
+NNAAMMEE
+ TP-double - effect of double tagged paragraph
+
+DDEESSCCRRIIPPTTIIOONN
+ leading text: This is a rather long text because we want to test the
+ text width; at which point will this text wrap to the next line?
+
+ first TP This is a rather long text because we want to test the
+ text width; at which point will this text wrap to the
+ next line?
+
+ second TP This is a rather long text because we want to test the
+ text width; at which point will this text wrap to the
+ next line?
+
+ normal paragraph: This is a rather long text because we want to test
+ the text width; at which point will this text wrap to the next line?
+
+ double TP This is a rather long text because we want to test the
+ text width; at which point will this text wrap to the
+ next line?
+
+ normal paragraph: This is a rather long text because we want to test
+ the text width; at which point will this text wrap to the next line?
+
+ double TP This is a rather long text because we want to test the
+ text width; at which point will this text wrap to the
+ next line?
+
+ normal paragraph: This is a rather long text because we want to test
+ the text width; at which point will this text wrap to the next line?
+
+
+
+OpenBSD 2013-06-23 TP-DOUBLE(1)
diff --git a/regress/man/TP/double.out_lint b/regress/man/TP/double.out_lint
new file mode 100644
index 00000000..0ec1aa87
--- /dev/null
+++ b/regress/man/TP/double.out_lint
@@ -0,0 +1,5 @@
+mandoc: double.in:21:2: WARNING: line scope broken: TP breaks TP
+mandoc: double.in:30:2: WARNING: line scope broken: PP breaks B
+mandoc: double.in:32:2: WARNING: line scope broken: TP breaks TP
+mandoc: double.in:20:2: WARNING: skipping paragraph macro: PP empty
+mandoc: double.in:31:2: WARNING: skipping paragraph macro: PP empty
diff --git a/regress/man/TP/eof.in b/regress/man/TP/eof.in
new file mode 100644
index 00000000..7ab9a100
--- /dev/null
+++ b/regress/man/TP/eof.in
@@ -0,0 +1,6 @@
+.TH TP-EOF 1 "July 7, 2014" OpenBSD
+.SH NAME
+TP-eof \- indented paragraph macro at the end of the file
+.SH DESCRIPTION
+The last line of the file is TP:
+.TP
diff --git a/regress/man/TP/eof.out_ascii b/regress/man/TP/eof.out_ascii
new file mode 100644
index 00000000..30e2cb76
--- /dev/null
+++ b/regress/man/TP/eof.out_ascii
@@ -0,0 +1,13 @@
+TP-EOF(1) General Commands Manual TP-EOF(1)
+
+
+
+NNAAMMEE
+ TP-eof - indented paragraph macro at the end of the file
+
+DDEESSCCRRIIPPTTIIOONN
+ The last line of the file is TP:
+
+
+
+OpenBSD July 7, 2014 TP-EOF(1)
diff --git a/regress/man/TP/eof.out_lint b/regress/man/TP/eof.out_lint
new file mode 100644
index 00000000..62d6ff86
--- /dev/null
+++ b/regress/man/TP/eof.out_lint
@@ -0,0 +1 @@
+mandoc: eof.in:6:2: WARNING: line scope broken: EOF breaks TP
diff --git a/regress/man/TP/fill.in b/regress/man/TP/fill.in
new file mode 100644
index 00000000..642c4e5a
--- /dev/null
+++ b/regress/man/TP/fill.in
@@ -0,0 +1,16 @@
+.TH TP-FILL 1 "September 4, 2015" OpenBSD
+.SH NAME
+TP-fill \- interaction of tagged paragraphs and fill mode
+.SH DESCRIPTION
+Switching off fill mode:
+.TP
+.nf
+tag
+indented
+text
+Switching it back on:
+.fi
+.TP
+This is an extremely long tag that will certainly wrap the line and continue onto the next one.
+indented
+text
diff --git a/regress/man/TP/fill.out_ascii b/regress/man/TP/fill.out_ascii
new file mode 100644
index 00000000..6af000b3
--- /dev/null
+++ b/regress/man/TP/fill.out_ascii
@@ -0,0 +1,21 @@
+TP-FILL(1) General Commands Manual TP-FILL(1)
+
+
+
+NNAAMMEE
+ TP-fill - interaction of tagged paragraphs and fill mode
+
+DDEESSCCRRIIPPTTIIOONN
+ Switching off fill mode:
+
+ tag indented
+ text
+ Switching it back on:
+
+ This is an extremely long tag that will certainly wrap the line and
+ continue onto the next one.
+ indented text
+
+
+
+OpenBSD September 4, 2015 TP-FILL(1)
diff --git a/regress/man/TP/literal.in b/regress/man/TP/literal.in
new file mode 100644
index 00000000..ca86df57
--- /dev/null
+++ b/regress/man/TP/literal.in
@@ -0,0 +1,26 @@
+.TH TP-LITERAL 1 "January 4, 2011" OpenBSD
+.SH NAME
+TP-literal \- indented paragraphs in literal context
+.SH DESCRIPTION
+regular
+text
+.TP 10n
+tag
+indented
+text
+.PP
+regular
+text
+.nf
+literal
+text
+.TP 10n
+tag
+indented
+text
+.PP
+literal
+text
+.fi
+regular
+text
diff --git a/regress/man/TP/literal.out_ascii b/regress/man/TP/literal.out_ascii
new file mode 100644
index 00000000..b8dddb7b
--- /dev/null
+++ b/regress/man/TP/literal.out_ascii
@@ -0,0 +1,26 @@
+TP-LITERAL(1) General Commands Manual TP-LITERAL(1)
+
+
+
+NNAAMMEE
+ TP-literal - indented paragraphs in literal context
+
+DDEESSCCRRIIPPTTIIOONN
+ regular text
+
+ tag indented text
+
+ regular text
+ literal
+ text
+
+ tag indented
+ text
+
+ literal
+ text
+ regular text
+
+
+
+OpenBSD January 4, 2011 TP-LITERAL(1)
diff --git a/regress/man/TP/longhead.in b/regress/man/TP/longhead.in
new file mode 100644
index 00000000..2fab0df4
--- /dev/null
+++ b/regress/man/TP/longhead.in
@@ -0,0 +1,11 @@
+.TH TP-LONGHEAD 1 "April 8, 2014" OpenBSD
+.SH NAME
+TP-longhead \- tagged paragraph with a long head
+.SH DESCRIPTION
+normal text
+.TP 6n
+.B "This tagged paragraph has ridiculously long text \
+in its head, such that it doesn't even fit on the line"
+paragraph body
+.PP
+normal text
diff --git a/regress/man/TP/longhead.out_ascii b/regress/man/TP/longhead.out_ascii
new file mode 100644
index 00000000..f0de1ee5
--- /dev/null
+++ b/regress/man/TP/longhead.out_ascii
@@ -0,0 +1,19 @@
+TP-LONGHEAD(1) General Commands Manual TP-LONGHEAD(1)
+
+
+
+NNAAMMEE
+ TP-longhead - tagged paragraph with a long head
+
+DDEESSCCRRIIPPTTIIOONN
+ normal text
+
+ TThhiiss ttaaggggeedd ppaarraaggrraapphh hhaass rriiddiiccuulloouussllyy lloonngg tteexxtt iinn iittss hheeaadd,, ssuucchh tthhaatt
+ iitt ddooeessnn''tt eevveenn ffiitt oonn tthhee lliinnee
+ paragraph body
+
+ normal text
+
+
+
+OpenBSD April 8, 2014 TP-LONGHEAD(1)
diff --git a/regress/man/TP/macrotag.in b/regress/man/TP/macrotag.in
new file mode 100644
index 00000000..5fbb5914
--- /dev/null
+++ b/regress/man/TP/macrotag.in
@@ -0,0 +1,13 @@
+.TH TP-MACROTAG 1 "September 20, 2011" OpenBSD
+.SH NAME
+TP-macrotag \- macro in the head of a tagged paragraph
+.SH DESCRIPTION
+regular
+text
+.TP
+.B longindent
+indented
+text
+.PP
+regular
+text
diff --git a/regress/man/TP/macrotag.out_ascii b/regress/man/TP/macrotag.out_ascii
new file mode 100644
index 00000000..e466adcf
--- /dev/null
+++ b/regress/man/TP/macrotag.out_ascii
@@ -0,0 +1,18 @@
+TP-MACROTAG(1) General Commands Manual TP-MACROTAG(1)
+
+
+
+NNAAMMEE
+ TP-macrotag - macro in the head of a tagged paragraph
+
+DDEESSCCRRIIPPTTIIOONN
+ regular text
+
+ lloonnggiinnddeenntt
+ indented text
+
+ regular text
+
+
+
+OpenBSD September 20, 2011 TP-MACROTAG(1)
diff --git a/regress/man/TP/manyargs.in b/regress/man/TP/manyargs.in
new file mode 100644
index 00000000..4270c786
--- /dev/null
+++ b/regress/man/TP/manyargs.in
@@ -0,0 +1,45 @@
+.TH TP-MANYARGS 1 "January 4, 2011" OpenBSD
+.SH NAME
+TP-manyargs \- too many header args for indented blocks
+.SH DESCRIPTION
+regular
+text
+.TP 10n
+tag1
+indented
+text
+.PP
+regular
+text
+.TP 10n tag1
+tag2
+indented
+text
+.PP
+regular
+text
+.TP 10n tag2 tag1
+tag3
+indented
+text
+.nf
+literal
+text
+.TP 10n
+tag1
+indented
+text
+.PP
+literal
+text
+.TP 10n tag1
+tag2
+indented
+text
+.PP
+literal
+text
+.TP 10n tag2 tag1
+tag3
+indented
+text
diff --git a/regress/man/TP/manyargs.out_ascii b/regress/man/TP/manyargs.out_ascii
new file mode 100644
index 00000000..a88b8d5b
--- /dev/null
+++ b/regress/man/TP/manyargs.out_ascii
@@ -0,0 +1,40 @@
+TP-MANYARGS(1) General Commands Manual TP-MANYARGS(1)
+
+
+
+NNAAMMEE
+ TP-manyargs - too many header args for indented blocks
+
+DDEESSCCRRIIPPTTIIOONN
+ regular text
+
+ tag1 indented text
+
+ regular text
+
+ tag2 indented text
+
+ regular text
+
+ tag3 indented text
+ literal
+ text
+
+ tag1 indented
+ text
+
+ literal
+ text
+
+ tag2 indented
+ text
+
+ literal
+ text
+
+ tag3 indented
+ text
+
+
+
+OpenBSD January 4, 2011 TP-MANYARGS(1)
diff --git a/regress/man/TP/sameline.in b/regress/man/TP/sameline.in
new file mode 100644
index 00000000..8857b231
--- /dev/null
+++ b/regress/man/TP/sameline.in
@@ -0,0 +1,30 @@
+.TH TP-SAMELINE 1 "March 8, 2014" OpenBSD
+.SH NAME
+TP-sameline \- test sameline logic of indented paragraphs
+.SH DESCRIPTION
+.SS without user-defined macros
+with width:
+.TP 6n
+tag
+text
+.PP
+without width:
+.TP
+20n
+text
+.SS with user-defined macros
+.de mylist
+with width:
+.TP 6n
+tag
+text
+..
+.mylist
+.PP
+.de mylist
+without width:
+.TP
+20n
+text
+..
+.mylist
diff --git a/regress/man/TP/sameline.out_ascii b/regress/man/TP/sameline.out_ascii
new file mode 100644
index 00000000..767f46cc
--- /dev/null
+++ b/regress/man/TP/sameline.out_ascii
@@ -0,0 +1,29 @@
+TP-SAMELINE(1) General Commands Manual TP-SAMELINE(1)
+
+
+
+NNAAMMEE
+ TP-sameline - test sameline logic of indented paragraphs
+
+DDEESSCCRRIIPPTTIIOONN
+ wwiitthhoouutt uusseerr--ddeeffiinneedd mmaaccrrooss
+ with width:
+
+ tag text
+
+ without width:
+
+ 20n text
+
+ wwiitthh uusseerr--ddeeffiinneedd mmaaccrrooss
+ with width:
+
+ tag text
+
+ without width:
+
+ 20n text
+
+
+
+OpenBSD March 8, 2014 TP-SAMELINE(1)
diff --git a/regress/man/TP/spacing.in b/regress/man/TP/spacing.in
new file mode 100644
index 00000000..71c788aa
--- /dev/null
+++ b/regress/man/TP/spacing.in
@@ -0,0 +1,42 @@
+.TH TP-SPACING 1 "September 21, 2015" OpenBSD
+.SH NAME
+TP-spacing \- spacing in tagged paragraphs
+.SH DESCRIPTION
+Normal text.
+.TP
+tag
+Indented text.
+.TP
+four
+Indented text.
+.TP
+ffive
+Indented text.
+.TP
+sixsix
+Indented text.
+.TP
+seseven
+Indented text.
+.TP
+a much longer tag
+Indented text.
+.LP
+Tags with trailing space:
+.TP
+tag\ \&
+Three plus one makes four.
+.TP
+tag\ \ \&
+Three plus two makes five.
+.TP
+tag\ \ \ \&
+Three plus three makes six.
+.TP
+tag\ \ \ \ \ \&
+Three plus four makes seven.
+.TP
+tag\ \ \ \ \ \ \&
+Three plus five makes eight.
+.LP
+Normal text.
diff --git a/regress/man/TP/spacing.out_ascii b/regress/man/TP/spacing.out_ascii
new file mode 100644
index 00000000..247b25f9
--- /dev/null
+++ b/regress/man/TP/spacing.out_ascii
@@ -0,0 +1,43 @@
+TP-SPACING(1) General Commands Manual TP-SPACING(1)
+
+
+
+NNAAMMEE
+ TP-spacing - spacing in tagged paragraphs
+
+DDEESSCCRRIIPPTTIIOONN
+ Normal text.
+
+ tag Indented text.
+
+ four Indented text.
+
+ ffive Indented text.
+
+ sixsix Indented text.
+
+ seseven
+ Indented text.
+
+ a much longer tag
+ Indented text.
+
+ Tags with trailing space:
+
+ tag Three plus one makes four.
+
+ tag Three plus two makes five.
+
+ tag Three plus three makes six.
+
+ tag
+ Three plus four makes seven.
+
+ tag
+ Three plus five makes eight.
+
+ Normal text.
+
+
+
+OpenBSD September 21, 2015 TP-SPACING(1)
diff --git a/regress/man/TP/width.in b/regress/man/TP/width.in
new file mode 100644
index 00000000..1ba99e40
--- /dev/null
+++ b/regress/man/TP/width.in
@@ -0,0 +1,89 @@
+.TH TP-WIDTH 1 "December 23, 2014" OpenBSD
+.SH NAME
+TP-width \- indentation width of indented paragraphs
+.SH DESCRIPTION
+Regular mode:
+.TP -10n
+tag
+indented
+.br
+text
+.TP -4n
+tag
+indented
+.br
+text
+.TP 0n
+tag
+indented
+.br
+text
+.TP 1n
+tag
+indented
+.br
+text
+.TP 2n
+tag
+indented
+.br
+text
+.TP 3n
+tag
+indented
+.br
+text
+.TP 4n
+tag
+indented
+.br
+text
+.TP 5n
+tag
+indented
+.br
+text
+.TP 100n
+tag
+indented
+.br
+text
+.PP
+Literal mode:
+.nf
+.TP -10n
+tag
+indented
+text
+.TP -4n
+tag
+indented
+text
+.TP 0n
+tag
+indented
+text
+.TP 1n
+tag
+indented
+text
+.TP 2n
+tag
+indented
+text
+.TP 3n
+tag
+indented
+text
+.TP 4n
+tag
+indented
+text
+.TP 5n
+tag
+indented
+text
+.TP 100n
+tag
+indented
+text
diff --git a/regress/man/TP/width.out_ascii b/regress/man/TP/width.out_ascii
new file mode 100644
index 00000000..fea63883
--- /dev/null
+++ b/regress/man/TP/width.out_ascii
@@ -0,0 +1,81 @@
+TP-WIDTH(1) General Commands Manual TP-WIDTH(1)
+
+
+
+NNAAMMEE
+ TP-width - indentation width of indented paragraphs
+
+DDEESSCCRRIIPPTTIIOONN
+ Regular mode:
+
+ tag
+indented
+text
+
+ tag
+ indented
+ text
+
+ tag
+ indented
+ text
+
+ tag
+ indented
+ text
+
+ tag
+ indented
+ text
+
+ tag
+ indented
+ text
+
+ tag indented
+ text
+
+ tag indented
+ text
+
+ tag indented
+ text
+
+ Literal mode:
+
+ tag
+indented
+text
+
+ tag
+ indented
+ text
+
+ tag
+ indented
+ text
+
+ tag
+ indented
+ text
+
+ tag
+ indented
+ text
+
+ tag
+ indented
+ text
+
+ tag indented
+ text
+
+ tag indented
+ text
+
+ tag indented
+ text
+
+
+
+OpenBSD December 23, 2014 TP-WIDTH(1)