summaryrefslogtreecommitdiffstats
path: root/regress/man
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@netbsd.org>2010-05-17 10:43:48 +0000
committerJoerg Sonnenberger <joerg@netbsd.org>2010-05-17 10:43:48 +0000
commit2d627d830fbf25aceab34e2105f73213f8294fd2 (patch)
tree0679006a9eee77cf288361a14b51c4a48fd1e13b /regress/man
parentf4d664b629aef54937b837ddcbf31708d2f11823 (diff)
downloadmandoc-2d627d830fbf25aceab34e2105f73213f8294fd2.tar.gz
Tests for sane and insane handling of lines before and after .SH/.SS
Diffstat (limited to 'regress/man')
-rw-r--r--regress/man/SH/blank.in19
-rw-r--r--regress/man/SH/blank2.in4
2 files changed, 23 insertions, 0 deletions
diff --git a/regress/man/SH/blank.in b/regress/man/SH/blank.in
new file mode 100644
index 00000000..ba5bb825
--- /dev/null
+++ b/regress/man/SH/blank.in
@@ -0,0 +1,19 @@
+.TH SH-blank 1 "2010-05-17" "MANDOC"
+.SH DESCRIPTION
+.SH NO EMPTY LINE BEFORE THIS
+.AT
+.SH NO EMPTY LINE BEFORE THIS EITHER
+.SS Before this, yes
+.SS Before this, no
+foo
+.SS Before this, one
+xxx
+.PP
+.SS Before this, two empty lines
+.PP
+.SS Before this, no
+xxx
+.SS Before this, one
+.IP foo
+.SS Before this, yes
+xxx
diff --git a/regress/man/SH/blank2.in b/regress/man/SH/blank2.in
new file mode 100644
index 00000000..e8e1c7e3
--- /dev/null
+++ b/regress/man/SH/blank2.in
@@ -0,0 +1,4 @@
+.TH SH-blank 1 "2010-05-17" "MANDOC"
+.AT
+.SH NO EMPTY LINE BEFORE THIS
+.SS No empty lines after this