aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/mdoc/Rs
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-09-04 19:01:52 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-09-04 19:01:52 +0000
commite34eebeaa729c7d5cc258b87d5a6edd409cfaea2 (patch)
treee7ce81f41c55fcbeddff137f27cc0aaaf7542a3a /regress/mdoc/Rs
parent0fa73731889c2ae8170a8e5d38b5023ff6c6f321 (diff)
downloadmandoc-e34eebeaa729c7d5cc258b87d5a6edd409cfaea2.tar.gz
mandoc-e34eebeaa729c7d5cc258b87d5a6edd409cfaea2.tar.zst
mandoc-e34eebeaa729c7d5cc258b87d5a6edd409cfaea2.zip
Properly handle -mdoc %A in all outputs. This has two-author entires
separated by only "and" while two or more are with ", and" for the last author. Also remove relevant TODO and add regression tests.
Diffstat (limited to 'regress/mdoc/Rs')
-rw-r--r--regress/mdoc/Rs/one_author.in15
-rw-r--r--regress/mdoc/Rs/three_authors.in17
-rw-r--r--regress/mdoc/Rs/two_authors.in16
3 files changed, 48 insertions, 0 deletions
diff --git a/regress/mdoc/Rs/one_author.in b/regress/mdoc/Rs/one_author.in
new file mode 100644
index 00000000..98934ec0
--- /dev/null
+++ b/regress/mdoc/Rs/one_author.in
@@ -0,0 +1,15 @@
+.Dd May 1, 2009
+.Dt FOO 1
+.Os
+.Sh NAME
+.Nm foo
+.Nd bar
+.Sh DESCRIPTION
+blah blah
+.Pp
+.Rs
+.%A joe
+.%T title
+.Re
+.Pp
+and so on
diff --git a/regress/mdoc/Rs/three_authors.in b/regress/mdoc/Rs/three_authors.in
new file mode 100644
index 00000000..245023c5
--- /dev/null
+++ b/regress/mdoc/Rs/three_authors.in
@@ -0,0 +1,17 @@
+.Dd May 1, 2009
+.Dt FOO 1
+.Os
+.Sh NAME
+.Nm foo
+.Nd bar
+.Sh DESCRIPTION
+blah blah
+.Pp
+.Rs
+.%A billy-bob
+.%A joe
+.%A frank
+.%T title
+.Re
+.Pp
+and so on
diff --git a/regress/mdoc/Rs/two_authors.in b/regress/mdoc/Rs/two_authors.in
new file mode 100644
index 00000000..d1a74f27
--- /dev/null
+++ b/regress/mdoc/Rs/two_authors.in
@@ -0,0 +1,16 @@
+.Dd May 1, 2009
+.Dt FOO 1
+.Os
+.Sh NAME
+.Nm foo
+.Nd bar
+.Sh DESCRIPTION
+blah blah
+.Pp
+.Rs
+.%A joe
+.%A frank
+.%T title
+.Re
+.Pp
+and so on