Subject: bin/13286: nroff -mdoc: .%A printing fix
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itojun@itojun.org>
List: netbsd-bugs
Date: 06/23/2001 13:34:07
>Number:         13286
>Category:       bin
>Synopsis:       nroff -mdoc: .%A printing fix
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 22 21:39:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Jun-ichiro itojun Hagino
>Release:        1.5W (3rdparty software - groff)
>Organization:
	itojun.org
>Environment:
	
System: NetBSD starfruit.itojun.org 1.5W NetBSD 1.5W (STARFRUIT) #506: Mon Jun 18 12:19:27 JST 2001 itojun@starfruit.itojun.org:/usr/home/itojun/NetBSD/src/sys/arch/i386/compile/STARFRUIT i386
Architecture: i386
Machine: i386
>Description:
	when multiple .%A is present, names are printed like below:
		1 author: first guy, ...
		2 authors: first guy, and second guy, ...
		3 authors: first, second, and third guy, ...
	from discussion with "Brian J. Kifiak" <bk@rt.fm>, the case for 2
	author is incorrect. "first guy" should carry no comma after it
	(and before "and"), he says.  not sure about it myself.
>How-To-Repeat:
>Fix:
	if it makes sense, we need to send it back to groff guys.

*** /usr/share/tmac/tmac.doc	Sat May 20 15:45:28 2000
--- tmac.doc	Sat Jun 23 13:23:50 2001
***************
*** 2658,2667 ****
  .rm uK jK iK nK oK rK qK tK vK dK pK bK
  ..
  .de rZ
! .if \\n(uK \{\&\\*(U1,
! .	nr aK 1
! .	if (\\n(uK>1 \{\
  .		aK
  .	\}
  .	nr Kl -\\n(uK
  .\}
--- 2658,2673 ----
  .rm uK jK iK nK oK rK qK tK vK dK pK bK
  ..
  .de rZ
! .if \\n(uK \{\
! .	ie (\\n(uK>2 \{\&\\*(U1,
! .		nr aK 1
  .		aK
+ .	\}
+ .	el \{\
+ .		ie (\\n(uK>1 \{\&\\*(U1 and \&\\*(U2,
+ .		\}
+ .		el \{\&\\*(U1,
+ .		\}
  .	\}
  .	nr Kl -\\n(uK
  .\}
>Release-Note:
>Audit-Trail:
>Unformatted: