aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/man/RS
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-02-08 03:02:13 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-02-08 03:02:13 +0000
commitd9f0f81c846a8405c29870e4a8379e5e79d1cad3 (patch)
treec07efd74ac58650949dc67576001a720e688319f /regress/man/RS
parentcdbb1fca07752eb230e5219c22e9e65075c85b82 (diff)
downloadmandoc-d9f0f81c846a8405c29870e4a8379e5e79d1cad3.tar.gz
mandoc-d9f0f81c846a8405c29870e4a8379e5e79d1cad3.tar.zst
mandoc-d9f0f81c846a8405c29870e4a8379e5e79d1cad3.zip
Finally port the OpenBSD regression suite.
Both kristaps@ and wiz@ repeated asked for this, literally for years.
Diffstat (limited to 'regress/man/RS')
-rw-r--r--regress/man/RS/Makefile7
-rw-r--r--regress/man/RS/REarg.in26
-rw-r--r--regress/man/RS/REarg.out_ascii23
-rw-r--r--regress/man/RS/REarg.out_lint7
-rw-r--r--regress/man/RS/breaking.in23
-rw-r--r--regress/man/RS/breaking.out_ascii21
-rw-r--r--regress/man/RS/broken.in45
-rw-r--r--regress/man/RS/broken.out_ascii41
-rw-r--r--regress/man/RS/empty.in16
-rw-r--r--regress/man/RS/empty.out_ascii16
-rw-r--r--regress/man/RS/empty.out_lint1
-rw-r--r--regress/man/RS/literal.in18
-rw-r--r--regress/man/RS/literal.out_ascii20
-rw-r--r--regress/man/RS/lonelyRE.in21
-rw-r--r--regress/man/RS/lonelyRE.out_ascii23
-rw-r--r--regress/man/RS/lonelyRE.out_lint3
-rw-r--r--regress/man/RS/nested.in54
-rw-r--r--regress/man/RS/nested.out_ascii41
-rw-r--r--regress/man/RS/noRE.in9
-rw-r--r--regress/man/RS/noRE.out_ascii14
-rw-r--r--regress/man/RS/noRE.out_lint1
-rw-r--r--regress/man/RS/nowidth.in20
-rw-r--r--regress/man/RS/nowidth.out_ascii21
-rw-r--r--regress/man/RS/width.in30
-rw-r--r--regress/man/RS/width.out_ascii22
25 files changed, 523 insertions, 0 deletions
diff --git a/regress/man/RS/Makefile b/regress/man/RS/Makefile
new file mode 100644
index 00000000..4c62bb30
--- /dev/null
+++ b/regress/man/RS/Makefile
@@ -0,0 +1,7 @@
+# $OpenBSD: Makefile,v 1.11 2015/04/06 13:34:54 schwarze Exp $
+
+REGRESS_TARGETS = breaking broken empty literal lonelyRE
+REGRESS_TARGETS += nested noRE nowidth REarg width
+LINT_TARGETS = empty lonelyRE noRE REarg
+
+.include <bsd.regress.mk>
diff --git a/regress/man/RS/REarg.in b/regress/man/RS/REarg.in
new file mode 100644
index 00000000..05eadd8e
--- /dev/null
+++ b/regress/man/RS/REarg.in
@@ -0,0 +1,26 @@
+.TH RS-REARG 1 "January 24, 2015" OpenBSD
+.SH NAME
+RS-REarg \- arguments to the RE macro
+.SH DESCRIPTION
+level 1
+.RS 4n 2i
+level 2
+.RS 2n
+level 3
+.RE 2a
+back to 2
+.RE 1b
+back to 1
+.RS 4n
+level 2
+.RS 2n
+level 3
+.RE 1c
+back to 1
+.RS 4n
+level 2
+.RS 2n
+level 3
+.RE 0d
+back to 1
+.RE 1e
diff --git a/regress/man/RS/REarg.out_ascii b/regress/man/RS/REarg.out_ascii
new file mode 100644
index 00000000..747e037b
--- /dev/null
+++ b/regress/man/RS/REarg.out_ascii
@@ -0,0 +1,23 @@
+RS-REARG(1) General Commands Manual RS-REARG(1)
+
+
+
+NNAAMMEE
+ RS-REarg - arguments to the RE macro
+
+DDEESSCCRRIIPPTTIIOONN
+ level 1
+ level 2
+ level 3
+ back to 2
+ back to 1
+ level 2
+ level 3
+ back to 1
+ level 2
+ level 3
+ back to 1
+
+
+
+OpenBSD January 24, 2015 RS-REARG(1)
diff --git a/regress/man/RS/REarg.out_lint b/regress/man/RS/REarg.out_lint
new file mode 100644
index 00000000..3b516d96
--- /dev/null
+++ b/regress/man/RS/REarg.out_lint
@@ -0,0 +1,7 @@
+mandoc: REarg.in:6:8: ERROR: skipping excess arguments: RS ... 2i
+mandoc: REarg.in:10:6: ERROR: skipping excess arguments: RE ... a
+mandoc: REarg.in:12:6: ERROR: skipping excess arguments: RE ... b
+mandoc: REarg.in:18:6: ERROR: skipping excess arguments: RE ... c
+mandoc: REarg.in:24:6: ERROR: skipping excess arguments: RE ... d
+mandoc: REarg.in:26:6: ERROR: skipping excess arguments: RE ... e
+mandoc: REarg.in:26:2: ERROR: fewer RS blocks open, skipping: RE 1
diff --git a/regress/man/RS/breaking.in b/regress/man/RS/breaking.in
new file mode 100644
index 00000000..441c5524
--- /dev/null
+++ b/regress/man/RS/breaking.in
@@ -0,0 +1,23 @@
+.TH RS-BREAKING 1 "7 July 2012" OpenBSD
+.SH NAME
+RS-breaking \- some block gets broken by an RS block
+.SH DESCRIPTION
+preceding text
+.TP 4n
+*
+item
+.RS 8n
+indented text
+.RE
+middle text
+.TP 4n
+*
+.RS 8n
+indented text
+.RE
+.\" middle text
+.\" .TP 4n
+.\" .RS 8n
+.\" indented text
+.\" .RE
+trailing text
diff --git a/regress/man/RS/breaking.out_ascii b/regress/man/RS/breaking.out_ascii
new file mode 100644
index 00000000..687e2990
--- /dev/null
+++ b/regress/man/RS/breaking.out_ascii
@@ -0,0 +1,21 @@
+RS-BREAKING(1) General Commands Manual RS-BREAKING(1)
+
+
+
+NNAAMMEE
+ RS-breaking - some block gets broken by an RS block
+
+DDEESSCCRRIIPPTTIIOONN
+ preceding text
+
+ * item
+ indented text
+ middle text
+
+ *
+ indented text
+ trailing text
+
+
+
+OpenBSD 7 July 2012 RS-BREAKING(1)
diff --git a/regress/man/RS/broken.in b/regress/man/RS/broken.in
new file mode 100644
index 00000000..ea81c0c3
--- /dev/null
+++ b/regress/man/RS/broken.in
@@ -0,0 +1,45 @@
+.TH RS-BROKEN 1 "January 24, 2015" OpenBSD
+.SH NAME
+RS-broken \- indented blocks broken by other blocks
+.SH DESCRIPTION
+broken by PP:
+.RS 2n
+indented
+.PP
+still indented
+.RE
+broken by IP:
+.RS
+indented
+.IP tag 6n
+first line
+.br
+second line
+.PP
+still indented
+.RE
+broken by TP:
+.RS
+indented
+.TP 6n
+tag
+first line
+.br
+second line
+.PP
+still indented
+.RE
+broken by HP:
+.RS
+indented
+.HP 2n
+Let's have a longer text here such that we can see the line break.
+.PP
+still indented
+.RE
+trailing PP:
+.RS
+indented
+.PP
+.RE
+final text
diff --git a/regress/man/RS/broken.out_ascii b/regress/man/RS/broken.out_ascii
new file mode 100644
index 00000000..ab219ac1
--- /dev/null
+++ b/regress/man/RS/broken.out_ascii
@@ -0,0 +1,41 @@
+RS-BROKEN(1) General Commands Manual RS-BROKEN(1)
+
+
+
+NNAAMMEE
+ RS-broken - indented blocks broken by other blocks
+
+DDEESSCCRRIIPPTTIIOONN
+ broken by PP:
+ indented
+
+ still indented
+ broken by IP:
+ indented
+
+ tag first line
+ second line
+
+ still indented
+ broken by TP:
+ indented
+
+ tag first line
+ second line
+
+ still indented
+ broken by HP:
+ indented
+
+ Let's have a longer text here such that we can see the line
+ break.
+
+ still indented
+ trailing PP:
+ indented
+
+ final text
+
+
+
+OpenBSD January 24, 2015 RS-BROKEN(1)
diff --git a/regress/man/RS/empty.in b/regress/man/RS/empty.in
new file mode 100644
index 00000000..a7cd5829
--- /dev/null
+++ b/regress/man/RS/empty.in
@@ -0,0 +1,16 @@
+.TH RS-EMPTY 1 "July 17, 2012" OpenBSD
+.SH NAME
+RS-empty \- empty margin reset blocks
+.SH DESCRIPTION
+regular
+text
+.RS 8n
+.RE
+regular
+text
+.RS 8n
+indented
+text
+.RE
+regular
+text
diff --git a/regress/man/RS/empty.out_ascii b/regress/man/RS/empty.out_ascii
new file mode 100644
index 00000000..7dee40c7
--- /dev/null
+++ b/regress/man/RS/empty.out_ascii
@@ -0,0 +1,16 @@
+RS-EMPTY(1) General Commands Manual RS-EMPTY(1)
+
+
+
+NNAAMMEE
+ RS-empty - empty margin reset blocks
+
+DDEESSCCRRIIPPTTIIOONN
+ regular text
+ regular text
+ indented text
+ regular text
+
+
+
+OpenBSD July 17, 2012 RS-EMPTY(1)
diff --git a/regress/man/RS/empty.out_lint b/regress/man/RS/empty.out_lint
new file mode 100644
index 00000000..fe983c38
--- /dev/null
+++ b/regress/man/RS/empty.out_lint
@@ -0,0 +1 @@
+mandoc: empty.in:7:2: WARNING: empty block: RS
diff --git a/regress/man/RS/literal.in b/regress/man/RS/literal.in
new file mode 100644
index 00000000..bd57c610
--- /dev/null
+++ b/regress/man/RS/literal.in
@@ -0,0 +1,18 @@
+.TH RS-LITERAL 1 "January 5, 2013" OpenBSD
+.SH NAME
+RS-literal \- indented literal text
+.SH DESCRIPTION
+regular
+text
+.nf
+literal
+text
+.RS
+This is a short line.
+This is a very long line that would wrap if it weren't in literal context.
+.RE
+.PP
+literal text
+.fi
+regular
+text
diff --git a/regress/man/RS/literal.out_ascii b/regress/man/RS/literal.out_ascii
new file mode 100644
index 00000000..a96741f3
--- /dev/null
+++ b/regress/man/RS/literal.out_ascii
@@ -0,0 +1,20 @@
+RS-LITERAL(1) General Commands Manual RS-LITERAL(1)
+
+
+
+NNAAMMEE
+ RS-literal - indented literal text
+
+DDEESSCCRRIIPPTTIIOONN
+ regular text
+ literal
+ text
+ This is a short line.
+ This is a very long line that would wrap if it weren't in literal context.
+
+ literal text
+ regular text
+
+
+
+OpenBSD January 5, 2013 RS-LITERAL(1)
diff --git a/regress/man/RS/lonelyRE.in b/regress/man/RS/lonelyRE.in
new file mode 100644
index 00000000..2f166dae
--- /dev/null
+++ b/regress/man/RS/lonelyRE.in
@@ -0,0 +1,21 @@
+.TH RS-LONELYRE 1 "November 10, 2013" OpenBSD
+.SH NAME
+RS-lonelyRE \- closing RS that is not open
+.SH DESCRIPTION
+.RS
+indented text
+.RE
+.TP 6n
+tag
+body
+.RE
+out of body
+.IP tag 6n
+body
+.RE
+out of body
+.HP 6n
+Here we need some text that is long enough to span more than one
+output line, such that we can see the hanging indentation.
+.RE
+out of body
diff --git a/regress/man/RS/lonelyRE.out_ascii b/regress/man/RS/lonelyRE.out_ascii
new file mode 100644
index 00000000..1b062d10
--- /dev/null
+++ b/regress/man/RS/lonelyRE.out_ascii
@@ -0,0 +1,23 @@
+RS-LONELYRE(1) General Commands Manual RS-LONELYRE(1)
+
+
+
+NNAAMMEE
+ RS-lonelyRE - closing RS that is not open
+
+DDEESSCCRRIIPPTTIIOONN
+ indented text
+
+ tag body
+ out of body
+
+ tag body
+ out of body
+
+ Here we need some text that is long enough to span more than one output
+ line, such that we can see the hanging indentation.
+ out of body
+
+
+
+OpenBSD November 10, 2013 RS-LONELYRE(1)
diff --git a/regress/man/RS/lonelyRE.out_lint b/regress/man/RS/lonelyRE.out_lint
new file mode 100644
index 00000000..8cb30028
--- /dev/null
+++ b/regress/man/RS/lonelyRE.out_lint
@@ -0,0 +1,3 @@
+mandoc: lonelyRE.in:11:2: ERROR: skipping end of block that is not open: RE
+mandoc: lonelyRE.in:15:2: ERROR: skipping end of block that is not open: RE
+mandoc: lonelyRE.in:20:2: ERROR: skipping end of block that is not open: RE
diff --git a/regress/man/RS/nested.in b/regress/man/RS/nested.in
new file mode 100644
index 00000000..7650e43f
--- /dev/null
+++ b/regress/man/RS/nested.in
@@ -0,0 +1,54 @@
+.TH RS-NESTED 1 "April 4, 2015" OpenBSD
+.SH NAME
+RS-nested \- various blocks nested inside reset blocks
+.SH DESCRIPTION
+regular
+text
+.RS
+outer
+text (default indent)
+.RS
+inner
+text (default indent)
+.RE
+outer
+text
+.RE
+regular text
+.IP tag 6n
+tagged text (6n)
+.RS
+outer text (saved 6n)
+.RS
+inner text (default indent)
+.RE
+outer text
+.RE
+regular text
+.RS 4n
+outer text (4n)
+.RS 2n
+inner text (2n)
+.RE
+outer text
+.IP indent 8n
+text (8n)
+.TP 6n
+tag
+text (6n)
+.HP 12n
+hanged
+This is very long text.
+Let's see where it will break the line,
+and which indent the next line will have - hopefully 12n.
+.PP
+outer text
+.RE
+nesting HP and RS inside RS:
+.RS
+outer text
+.HP 2n
+.RS 4n
+inner text
+.RE
+.RE
diff --git a/regress/man/RS/nested.out_ascii b/regress/man/RS/nested.out_ascii
new file mode 100644
index 00000000..f64bc5af
--- /dev/null
+++ b/regress/man/RS/nested.out_ascii
@@ -0,0 +1,41 @@
+RS-NESTED(1) General Commands Manual RS-NESTED(1)
+
+
+
+NNAAMMEE
+ RS-nested - various blocks nested inside reset blocks
+
+DDEESSCCRRIIPPTTIIOONN
+ regular text
+ outer text (default indent)
+ inner text (default indent)
+ outer text
+ regular text
+
+ tag tagged text (6n)
+ outer text (saved 6n)
+ inner text (default indent)
+ outer text
+ regular text
+ outer text (4n)
+ inner text (2n)
+ outer text
+
+ indent text (8n)
+
+ tag text (6n)
+
+ hanged This is very long text. Let's see where it will break the
+ line, and which indent the next line will have -
+ hopefully 12n.
+
+ outer text
+ nesting HP and RS inside RS:
+ outer text
+
+
+ inner text
+
+
+
+OpenBSD April 4, 2015 RS-NESTED(1)
diff --git a/regress/man/RS/noRE.in b/regress/man/RS/noRE.in
new file mode 100644
index 00000000..45ecbc26
--- /dev/null
+++ b/regress/man/RS/noRE.in
@@ -0,0 +1,9 @@
+.TH RS-NORE 1 "June 20, 2014" OpenBSD
+.SH NAME
+RS-noRE \- unclosed indented block
+.SH DESCRIPTION
+regular
+text
+.RS 8n
+indented
+text
diff --git a/regress/man/RS/noRE.out_ascii b/regress/man/RS/noRE.out_ascii
new file mode 100644
index 00000000..efd11787
--- /dev/null
+++ b/regress/man/RS/noRE.out_ascii
@@ -0,0 +1,14 @@
+RS-NORE(1) General Commands Manual RS-NORE(1)
+
+
+
+NNAAMMEE
+ RS-noRE - unclosed indented block
+
+DDEESSCCRRIIPPTTIIOONN
+ regular text
+ indented text
+
+
+
+OpenBSD June 20, 2014 RS-NORE(1)
diff --git a/regress/man/RS/noRE.out_lint b/regress/man/RS/noRE.out_lint
new file mode 100644
index 00000000..3c4c0a13
--- /dev/null
+++ b/regress/man/RS/noRE.out_lint
@@ -0,0 +1 @@
+mandoc: noRE.in:7:2: ERROR: appending missing end of block: RS
diff --git a/regress/man/RS/nowidth.in b/regress/man/RS/nowidth.in
new file mode 100644
index 00000000..ee53489a
--- /dev/null
+++ b/regress/man/RS/nowidth.in
@@ -0,0 +1,20 @@
+.TH RS-NESTED 1 "April 6, 2015" OpenBSD
+.SH NAME
+RS-nowidth \- indentation blocks not specifying a width
+.SH DESCRIPTION
+regular text
+.RS
+top-level indented list
+.RE
+regular text
+.TP 2n
+\(bu
+bullet list
+.RS
+indented text
+.RE
+regular text
+.RS
+top-level indented list
+.RE
+regular text
diff --git a/regress/man/RS/nowidth.out_ascii b/regress/man/RS/nowidth.out_ascii
new file mode 100644
index 00000000..c72f18f2
--- /dev/null
+++ b/regress/man/RS/nowidth.out_ascii
@@ -0,0 +1,21 @@
+RS-NESTED(1) General Commands Manual RS-NESTED(1)
+
+
+
+NNAAMMEE
+ RS-nowidth - indentation blocks not specifying a width
+
+DDEESSCCRRIIPPTTIIOONN
+ regular text
+ top-level indented list
+ regular text
+
+ +o bullet list
+ indented text
+ regular text
+ top-level indented list
+ regular text
+
+
+
+OpenBSD April 6, 2015 RS-NESTED(1)
diff --git a/regress/man/RS/width.in b/regress/man/RS/width.in
new file mode 100644
index 00000000..e723b583
--- /dev/null
+++ b/regress/man/RS/width.in
@@ -0,0 +1,30 @@
+.TH RS-WIDTH 1 "December 23, 2014" OpenBSD
+.SH NAME
+RS-width \- negative and excessive indentation
+.SH DESCRIPTION
+regular
+text
+.RS -14n
+indented
+text
+.RE
+regular
+text
+.RS -4n
+indented
+text
+.RE
+regular
+text
+.RS 4n
+indented
+text
+.RE
+regular
+text
+.RS 100n
+indented
+text
+.RE
+regular
+text
diff --git a/regress/man/RS/width.out_ascii b/regress/man/RS/width.out_ascii
new file mode 100644
index 00000000..12cd6824
--- /dev/null
+++ b/regress/man/RS/width.out_ascii
@@ -0,0 +1,22 @@
+RS-WIDTH(1) General Commands Manual RS-WIDTH(1)
+
+
+
+NNAAMMEE
+ RS-width - negative and excessive indentation
+
+DDEESSCCRRIIPPTTIIOONN
+ regular text
+indented text
+ regular text
+ indented text
+ regular text
+ indented text
+ regular text
+ indented
+ text
+ regular text
+
+
+
+OpenBSD December 23, 2014 RS-WIDTH(1)