summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mandoc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2013-11-10 22:58:26 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2013-11-10 22:58:26 +0000
commit40a7afc29160c251409ff67b23c797f7bba4c559 (patch)
tree4082fc0187e6c03335de96ea4e06eaea9aba0948 /regress/usr.bin/mandoc
parent6e9f7c14f3ceba28a8ff0293968ffcc74098623b (diff)
test man.c rev. 1.71
Diffstat (limited to 'regress/usr.bin/mandoc')
-rw-r--r--regress/usr.bin/mandoc/man/blank/Makefile4
-rw-r--r--regress/usr.bin/mandoc/man/blank/afterSH.in77
-rw-r--r--regress/usr.bin/mandoc/man/blank/afterSH.out_ascii58
-rw-r--r--regress/usr.bin/mandoc/man/blank/afterSS.in78
-rw-r--r--regress/usr.bin/mandoc/man/blank/afterSS.out_ascii60
5 files changed, 275 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/man/blank/Makefile b/regress/usr.bin/mandoc/man/blank/Makefile
index c5d887c3cf9..16c64841690 100644
--- a/regress/usr.bin/mandoc/man/blank/Makefile
+++ b/regress/usr.bin/mandoc/man/blank/Makefile
@@ -1,5 +1,5 @@
-# $OpenBSD: Makefile,v 1.1 2012/07/14 10:43:48 schwarze Exp $
+# $OpenBSD: Makefile,v 1.2 2013/11/10 22:58:25 schwarze Exp $
-REGRESS_TARGETS = line
+REGRESS_TARGETS = line afterSH afterSS
.include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/man/blank/afterSH.in b/regress/usr.bin/mandoc/man/blank/afterSH.in
new file mode 100644
index 00000000000..28934fdf2a1
--- /dev/null
+++ b/regress/usr.bin/mandoc/man/blank/afterSH.in
@@ -0,0 +1,77 @@
+.TH BLANK-AFTERSH 1 "November 10, 2013" OpenBSD
+.SH NAME
+blank-afterSH \- handling of blank lines right after a section heading
+.SH DESCRIPTION
+
+blank line before text
+.SH DESCRIPTION 2
+
+.PP
+blank line before PP
+.SH DESCRIPTION 3
+
+.RS 6n
+blank line before RS
+.RE
+.SH DESCRIPTION 4
+
+.IP TAG
+blank line before an indented paragraph
+.SH DESCRIPTION 5
+
+.TP
+TAG
+blank line before a tagged paragraph
+.SH DESCRIPTION 6
+
+.HP
+blank line before a hanged paragraph
+.SH DESCRIPTION 7
+
+.br
+blank line before br
+.SH DESCRIPTION 8
+
+.sp
+blank line before sp
+.SH DESCRIPTION 10
+
+
+double blank line before text
+.SH DESCRIPTION 12
+
+
+.PP
+double blank line before PP
+.SH DESCRIPTION 13
+
+
+.RS 6n
+double blank line before RS
+.RE
+.SH DESCRIPTION 14
+
+
+.IP TAG
+double blank line before an indented paragraph
+.SH DESCRIPTION 15
+
+
+.TP
+TAG
+double blank line before a tagged paragraph
+.SH DESCRIPTION 16
+
+
+.HP
+double blank line before a hanged paragraph
+.SH DESCRIPTION 17
+
+
+.br
+double blank line before br
+.SH DESCRIPTION 18
+
+
+.sp
+double blank line before sp
diff --git a/regress/usr.bin/mandoc/man/blank/afterSH.out_ascii b/regress/usr.bin/mandoc/man/blank/afterSH.out_ascii
new file mode 100644
index 00000000000..f520748babb
--- /dev/null
+++ b/regress/usr.bin/mandoc/man/blank/afterSH.out_ascii
@@ -0,0 +1,58 @@
+BLANK-AFTERSH(1) OpenBSD Reference Manual BLANK-AFTERSH(1)
+
+
+
+NNAAMMEE
+ blank-afterSH - handling of blank lines right after a section heading
+
+DDEESSCCRRIIPPTTIIOONN
+ blank line before text
+
+DDEESSCCRRIIPPTTIIOONN 22
+ blank line before PP
+
+DDEESSCCRRIIPPTTIIOONN 33
+ blank line before RS
+
+DDEESSCCRRIIPPTTIIOONN 44
+ TAG blank line before an indented paragraph
+
+DDEESSCCRRIIPPTTIIOONN 55
+ TAG blank line before a tagged paragraph
+
+DDEESSCCRRIIPPTTIIOONN 66
+ blank line before a hanged paragraph
+
+DDEESSCCRRIIPPTTIIOONN 77
+ blank line before br
+
+DDEESSCCRRIIPPTTIIOONN 88
+ blank line before sp
+
+DDEESSCCRRIIPPTTIIOONN 1100
+ double blank line before text
+
+DDEESSCCRRIIPPTTIIOONN 1122
+ double blank line before PP
+
+DDEESSCCRRIIPPTTIIOONN 1133
+ double blank line before RS
+
+DDEESSCCRRIIPPTTIIOONN 1144
+ TAG double blank line before an indented paragraph
+
+DDEESSCCRRIIPPTTIIOONN 1155
+ TAG double blank line before a tagged paragraph
+
+DDEESSCCRRIIPPTTIIOONN 1166
+ double blank line before a hanged paragraph
+
+DDEESSCCRRIIPPTTIIOONN 1177
+ double blank line before br
+
+DDEESSCCRRIIPPTTIIOONN 1188
+ double blank line before sp
+
+
+
+OpenBSD November 10, 2013 BLANK-AFTERSH(1)
diff --git a/regress/usr.bin/mandoc/man/blank/afterSS.in b/regress/usr.bin/mandoc/man/blank/afterSS.in
new file mode 100644
index 00000000000..cbf7afe3d56
--- /dev/null
+++ b/regress/usr.bin/mandoc/man/blank/afterSS.in
@@ -0,0 +1,78 @@
+.TH BLANK-AFTERSS 1 "November 10, 2013" OpenBSD
+.SH NAME
+blank-afterSS \- handling of blank lines right after a subsection heading
+.SH DESCRIPTION
+.SS 1
+
+blank line before text
+.SS 2
+
+.PP
+blank line before PP
+.SS 3
+
+.RS 6n
+blank line before RS
+.RE
+.SS 4
+
+.IP TAG
+blank line before an indented paragraph
+.SS 5
+
+.TP
+TAG
+blank line before a tagged paragraph
+.SS 6
+
+.HP
+blank line before a hanged paragraph
+.SS 7
+
+.br
+blank line before br
+.SS 8
+
+.sp
+blank line before sp
+.SS 10
+
+
+double blank line before text
+.SS 12
+
+
+.PP
+double blank line before PP
+.SS 13
+
+
+.RS 6n
+double blank line before RS
+.RE
+.SS 14
+
+
+.IP TAG
+double blank line before an indented paragraph
+.SS 15
+
+
+.TP
+TAG
+double blank line before a tagged paragraph
+.SS 16
+
+
+.HP
+double blank line before a hanged paragraph
+.SS 17
+
+
+.br
+double blank line before br
+.SS 18
+
+
+.sp
+double blank line before sp
diff --git a/regress/usr.bin/mandoc/man/blank/afterSS.out_ascii b/regress/usr.bin/mandoc/man/blank/afterSS.out_ascii
new file mode 100644
index 00000000000..8648c1f4bdd
--- /dev/null
+++ b/regress/usr.bin/mandoc/man/blank/afterSS.out_ascii
@@ -0,0 +1,60 @@
+BLANK-AFTERSS(1) OpenBSD Reference Manual BLANK-AFTERSS(1)
+
+
+
+NNAAMMEE
+ blank-afterSS - handling of blank lines right after a subsection
+ heading
+
+DDEESSCCRRIIPPTTIIOONN
+ 11
+ blank line before text
+
+ 22
+ blank line before PP
+
+ 33
+ blank line before RS
+
+ 44
+ TAG blank line before an indented paragraph
+
+ 55
+ TAG blank line before a tagged paragraph
+
+ 66
+ blank line before a hanged paragraph
+
+ 77
+ blank line before br
+
+ 88
+ blank line before sp
+
+ 1100
+ double blank line before text
+
+ 1122
+ double blank line before PP
+
+ 1133
+ double blank line before RS
+
+ 1144
+ TAG double blank line before an indented paragraph
+
+ 1155
+ TAG double blank line before a tagged paragraph
+
+ 1166
+ double blank line before a hanged paragraph
+
+ 1177
+ double blank line before br
+
+ 1188
+ double blank line before sp
+
+
+
+OpenBSD November 10, 2013 BLANK-AFTERSS(1)