aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-06-12 11:41:50 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-06-12 11:41:50 +0000
commit9e1c8c4504be3ee8555871134f21b59fba7bd8ac (patch)
treef962a1dc9d54009b312c3de97f2013da79ae5c9f /regress
parentaf1a16ee46c535e7e97fe26fc4c6c05844de41e2 (diff)
downloadmandoc-9e1c8c4504be3ee8555871134f21b59fba7bd8ac.tar.gz
mandoc-9e1c8c4504be3ee8555871134f21b59fba7bd8ac.tar.zst
mandoc-9e1c8c4504be3ee8555871134f21b59fba7bd8ac.zip
Removed stipulation that an empty `Bd -offset' will default to 6n. Not
sure where this came about. Added regression tests to convince myself that this is so. Also consolidated COMPATIBILITY notes regarding `Bd'. Added COMPATIBILITY note to the effect that old groff pukes on `Bd -compact -ragged' (regression test will fail on old groff).
Diffstat (limited to 'regress')
-rw-r--r--regress/mdoc/Bd/bd-compact.in33
-rw-r--r--regress/mdoc/Bd/bd-empty-offset.in31
-rw-r--r--regress/mdoc/Cd/cd.in4
3 files changed, 67 insertions, 1 deletions
diff --git a/regress/mdoc/Bd/bd-compact.in b/regress/mdoc/Bd/bd-compact.in
new file mode 100644
index 00000000..ec2e036b
--- /dev/null
+++ b/regress/mdoc/Bd/bd-compact.in
@@ -0,0 +1,33 @@
+.Dd $Mdocdate: June 12 2010 $
+.Dt FOO 1
+.Os
+.Sh NAME
+.Nm foo
+.Nd bar
+.Sh DESCRIPTION
+1
+.Bd -literal -compact
+a b
+c d
+.Ed
+2
+1
+.Bd -filled -compact
+a b
+c d
+.Ed
+2
+3
+.\" NOTE: OLD GROFF WILL PUKE HERE, AS IT BUGGILY FORGETS TO EMIT A
+.\" NEWLINE BEFORE THE DISPLAY.
+.Bd -ragged -compact
+a b
+c d
+.Ed
+2
+1
+.Bd -unfilled -compact
+a b
+c d
+.Ed
+2
diff --git a/regress/mdoc/Bd/bd-empty-offset.in b/regress/mdoc/Bd/bd-empty-offset.in
new file mode 100644
index 00000000..11f20db9
--- /dev/null
+++ b/regress/mdoc/Bd/bd-empty-offset.in
@@ -0,0 +1,31 @@
+.Dd $Mdocdate: June 12 2010 $
+.Dt FOO 1
+.Os
+.Sh NAME
+.Nm foo
+.Nd bar
+.Sh DESCRIPTION
+1
+.Bd -literal -offset
+a b
+c d
+.Ed
+2
+1
+.Bd -filled -offset
+a b
+c d
+.Ed
+2
+1
+.Bd -ragged -offset
+a b
+c d
+.Ed
+2
+1
+.Bd -unfilled -offset
+a b
+c d
+.Ed
+2
diff --git a/regress/mdoc/Cd/cd.in b/regress/mdoc/Cd/cd.in
index cce3c661..fc1d4e7d 100644
--- a/regress/mdoc/Cd/cd.in
+++ b/regress/mdoc/Cd/cd.in
@@ -1,4 +1,4 @@
-.Dd $Mdocdate: June 7 2010 $
+.Dd $Mdocdate: June 12 2010 $
.Dt FOO 1
.Os
.Sh NAME
@@ -9,6 +9,8 @@
.Cd "it* at isa? port 0x2e"
.Cd "it* at isa? port 0x2e"
.Sh DESCRIPTION
+.\" OLD GROFF WILL PUKE ON THIS PART, RENDERING IT JUST AS IT WAS
+.\" RENDERED IN THE SYNOPSIS.
.Cd "it* at isa? port 0x2e"
.Cd "it* at isa? port 0x2e"
.Cd "it* at isa? port 0x2e"