diff options
author | ru <ru@FreeBSD.org> | 2001-02-19 11:58:15 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2001-02-19 11:58:15 +0000 |
commit | 805aa03c9a4c65047f08a804151e59a8fd725989 (patch) | |
tree | 33537584f201cdbbda0c48d3d61ceaba83a45da0 /contrib/groff | |
parent | 149aaaf61985771449c777ff523ca88324d43dc4 (diff) | |
download | FreeBSD-src-805aa03c9a4c65047f08a804151e59a8fd725989.zip FreeBSD-src-805aa03c9a4c65047f08a804151e59a8fd725989.tar.gz |
Do not output extra comma before "and" for references with two authors.
Example:
.Rs
.%A Author1
.%A Author2
.%B Book
.Re
Produced:
Author1, and Author2, Book.
Now produces:
Author1 and Author2, Book.
Ported from: mdocNG
Diffstat (limited to 'contrib/groff')
-rw-r--r-- | contrib/groff/tmac/tmac.doc | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/contrib/groff/tmac/tmac.doc b/contrib/groff/tmac/tmac.doc index e18ea3e..0532bff 100644 --- a/contrib/groff/tmac/tmac.doc +++ b/contrib/groff/tmac/tmac.doc @@ -2904,11 +2904,8 @@ .\" NS rZ macro - reference print .de rZ .nh -.if \\n(uK \{\&\\*(U1, -. nr aK 1 -. if (\\n(uK>1 \{\ -. aK -. \} +.if \\n(uK \{\ +. aK . nr Kl -\\n(uK .\} .if \\n(tK \{\ @@ -2976,12 +2973,14 @@ .. .\" NS aK macro - print out reference authors .de aK -.nr aK \\n(aK+1 -.ie (\\n(uK-\\n(aK)==0 \{\&and \\*(U\\n(aK, -.\} -.el \{\&\\*(U\\n(aK, -. aK -.\} +.nr aK 1 +.while (\\n(aK<\\n(uK) \{\ +.ie (\\n(uK>2) \&\\*(U\\n(aK, +.el \&\\*(U\\n(aK +.nr aK +1 +.\} +.if (\\n(uK>1) \&and +\&\\*(U\\n(aK, .. .\" NS %A macro - reference author(s) .\" NS uK register - reference author(s) counter |