From 8602ef022ba97685524bab84712ad686cd05b20e Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 4 Sep 2010 19:01:52 +0000 Subject: 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. --- regress/mdoc/Rs/one_author.in | 15 +++++++++++++++ regress/mdoc/Rs/three_authors.in | 17 +++++++++++++++++ regress/mdoc/Rs/two_authors.in | 16 ++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 regress/mdoc/Rs/one_author.in create mode 100644 regress/mdoc/Rs/three_authors.in create mode 100644 regress/mdoc/Rs/two_authors.in (limited to 'regress/mdoc') 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 -- cgit