summaryrefslogtreecommitdiffstats
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
commit8602ef022ba97685524bab84712ad686cd05b20e (patch)
tree68f879dc053e8cd622fba425bf024d152f20a12f /regress/mdoc/Rs
parentf6865c5cc81f43ad947eb8f69efe22d17360f0d7 (diff)
downloadmandoc-8602ef022ba97685524bab84712ad686cd05b20e.tar.gz
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