From moriko@yakumo.noe.mcu.or.jp Thu Sep 23 04:11:52 1999
Return-Path: <moriko@yakumo.noe.mcu.or.jp>
Received: from mfi00.iij.ad.jp (mfi00.iij.ad.jp [202.232.2.115])
	by hub.freebsd.org (Postfix) with ESMTP id 1E72114EBD
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 23 Sep 1999 04:11:50 -0700 (PDT)
	(envelope-from moriko@yakumo.noe.mcu.or.jp)
Received: from pai.noe.mcu.or.jp (h009.p080.iij4u.or.jp [210.130.80.9])
	by mfi00.iij.ad.jp (8.8.8/MFI1.3) with ESMTP id UAA10013
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 23 Sep 1999 20:10:42 +0900 (JST)
Received: from yakumo.noe.mcu.or.jp (yakumo.noe.mcu.or.jp [172.16.1.2])
	by pai.noe.mcu.or.jp (8.8.8/3.7W) with ESMTP id TAA11404
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 23 Sep 1999 19:49:31 +0900 (JST)
Received: (from moriko@localhost)
	by yakumo.noe.mcu.or.jp (8.9.3/3.7W) id TAA02984;
	Thu, 23 Sep 1999 19:49:31 +0900 (JST)
Message-Id: <199909231049.TAA02984@yakumo.noe.mcu.or.jp>
Date: Thu, 23 Sep 1999 19:49:31 +0900 (JST)
From: mori@tri.asanuma.co.jp
Sender: moriko@yakumo.noe.mcu.or.jp
Reply-To: mori@tri.asanuma.co.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: man outputs footer only page as first page
X-Send-Pr-Version: 3.2

>Number:         13916
>Category:       conf
>Synopsis:       man outputs footer only page as first page.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mpp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 23 04:20:00 PDT 1999
>Closed-Date:    Thu May 4 18:26:25 PDT 2000
>Last-Modified:  Thu May  4 18:27:16 PDT 2000
>Originator:     Mori Kouji
>Release:        FreeBSD 3.3-STABLE i386
>Organization:
Technical Research Institute, Asanuma Corp., Takatsuki, Japan
>Environment:

FreeBSD yakumo.noe.mcu.or.jp 3.3-STABLE
FreeBSD 3.3-STABLE #11: Sat Sep 18 14:58:36 JST 1999
moriko@yakumo.noe.mcu.or.jp:/usr/src/sys/compile/CUSTOM  i386

>Description:

I enter command such as "man -t ppp | lpr" to get hardcopy.
Then, my printer outputs empty page as 1st page. (exactly, the page
has footer only)  Such case is happened some other man pages,
which has field ".Os FreeBSD", ie.  adduser(8), moused(8)... etc.

>How-To-Repeat:

In system that /usr/share/tmac/mdoc/doc-common is newer than
'1.13 Thu Feb 18 16:54:24 JST 1999 UTC by fenner',
enter command such as "man -t adduser".

>Fix:

apply this patch to "/usr/share/tmac/mdoc/doc-common"

--- doc-common	Thu Sep 23 17:59:12 1999
+++ doc-common.new	Thu Sep 23 17:54:52 1999
@@ -213,32 +213,31 @@
 .	if "\\*(oS"Null" .tm Unknown BSD version ``\\$2'' at line \\n(c.
 .\}
 .if "\\$1"FreeBSD" \{\
-.	if "\\$2"2"      .ds oS FreeBSD 2.0
-.	    ie \\n(.$==1        \c
-.	el .ie "\\$2"1.0"       \c
-.	el .ie "\\$2"1.1"       \c
-.	el .ie "\\$2"1.1.5"     \c
-.	el .ie "\\$2"1.1.5.1"   \c
-.	el .ie "\\$2"2"         \c
-.	el .ie "\\$2"2.0"       \c
-.	el .ie "\\$2"2.0.5"     \c
-.	el .ie "\\$2"2.1"       \c
-.	el .ie "\\$2"2.1.5"     \c
-.	el .ie "\\$2"2.1.6"     \c
-.	el .ie "\\$2"2.1.7"     \c
-.	el .ie "\\$2"2.2"       \c
-.	el .ie "\\$2"2.2.1"     \c
-.	el .ie "\\$2"2.2.2"     \c
-.	el .ie "\\$2"2.2.5"     \c
-.	el .ie "\\$2"2.2.6"     \c
-.	el .ie "\\$2"2.2.7"     \c
-.	el .ie "\\$2"2.2.8"     \c
-.	el .ie "\\$2"3.0"       \c
-.	el .ie "\\$2"3.1"       \c
-.	el .ie "\\$2"3.2"       \c
-.	el .ie "\\$2"3.3"       \c
-.	el .ie "\\$2"4.0"       \c
-.	el .tm Unknown FreeBSD version ``\\$2'' at line \\n(c.
+.	if "\\$2""        .ds oS FreeBSD
+.	if "\\$2"1.0"     .ds oS FreeBSD 1.0
+.	if "\\$2"1.1"     .ds oS FreeBSD 1.1
+.	if "\\$2"1.1.5"   .ds oS FreeBSD 1.1.5
+.	if "\\$2"1.1.5.1" .ds oS FreeBSD 1.1.5.1
+.	if "\\$2"2"       .ds oS FreeBSD 2
+.	if "\\$2"2.0"     .ds oS FreeBSD 2.0
+.	if "\\$2"2.0.5"   .ds oS FreeBSD 2.0.5
+.	if "\\$2"2.1"     .ds oS FreeBSD 2.1
+.	if "\\$2"2.1.5"   .ds oS FreeBSD 2.1.5
+.	if "\\$2"2.1.6"   .ds oS FreeBSD 2.1.6
+.	if "\\$2"2.1.7"   .ds oS FreeBSD 2.1.7
+.	if "\\$2"2.2"     .ds oS FreeBSD 2.2
+.	if "\\$2"2.2.1"   .ds oS FreeBSD 2.2.1
+.	if "\\$2"2.2.2"   .ds oS FreeBSD 2.2.2
+.	if "\\$2"2.2.5"   .ds oS FreeBSD 2.2.5
+.	if "\\$2"2.2.6"   .ds oS FreeBSD 2.2.6
+.	if "\\$2"2.2.7"   .ds oS FreeBSD 2.2.7
+.	if "\\$2"2.2.8"   .ds oS FreeBSD 2.2.8
+.	if "\\$2"3.0"     .ds oS FreeBSD 3.0
+.	if "\\$2"3.1"     .ds oS FreeBSD 3.1
+.	if "\\$2"3.2"     .ds oS FreeBSD 3.2
+.	if "\\$2"3.3"     .ds oS FreeBSD 3.3
+.	if "\\$2"4.0"     .ds oS FreeBSD 4.0
+.	if "\\*(oS"Null" .tm Unknown FreeBSD version ``\\$2'' at line \\n(c.
 .\}
 .if "\\*(oS"Null" \{\
 .	ds oS \&\\$1



>Release-Note:
>Audit-Trail:

From: Bill Fenner <fenner@research.att.com>
To: mori@tri.asanuma.co.jp
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: conf/13916: man outputs footer only page as first page
Date: Thu, 23 Sep 1999 09:16:59 -0700

 Oops, that's pretty nasty.  I can't say that I completely understand
 groff's behavior in this case, but I have a patch that I like better;
 it retains the elimination of the duplication of "FreeBSD" and the
 version numbers.  Would you mind trying this one and seeing if it
 works for you?
 
   Bill
 
 
 Index: doc-common
 ===================================================================
 RCS file: /home/ncvs/src/contrib/groff/tmac/doc-common,v
 retrieving revision 1.10.2.4
 diff -u -r1.10.2.4 doc-common
 --- doc-common	1999/09/07 12:58:48	1.10.2.4
 +++ doc-common	1999/09/23 16:13:07
 @@ -228,31 +228,32 @@
  .	if "\\*(oS"Null" .tm Unknown BSD version ``\\$2'' at line \\n(c.
  .\}
  .if "\\$1"FreeBSD" \{\
 -.	if "\\$2"2"      .ds oS FreeBSD 2.0
 -.	    ie \\n(.$==1        \c
 -.	el .ie "\\$2"1.0"       \c
 -.	el .ie "\\$2"1.1"       \c
 -.	el .ie "\\$2"1.1.5"     \c
 -.	el .ie "\\$2"1.1.5.1"   \c
 -.	el .ie "\\$2"2"         \c
 -.	el .ie "\\$2"2.0"       \c
 -.	el .ie "\\$2"2.0.5"     \c
 -.	el .ie "\\$2"2.1"       \c
 -.	el .ie "\\$2"2.1.5"     \c
 -.	el .ie "\\$2"2.1.6"     \c
 -.	el .ie "\\$2"2.1.7"     \c
 -.	el .ie "\\$2"2.2"       \c
 -.	el .ie "\\$2"2.2.1"     \c
 -.	el .ie "\\$2"2.2.2"     \c
 -.	el .ie "\\$2"2.2.5"     \c
 -.	el .ie "\\$2"2.2.6"     \c
 -.	el .ie "\\$2"2.2.7"     \c
 -.	el .ie "\\$2"2.2.8"     \c
 -.	el .ie "\\$2"3.0"       \c
 -.	el .ie "\\$2"3.1"       \c
 -.	el .ie "\\$2"3.2"       \c
 -.	el .ie "\\$2"3.3"       \c
 -.	el .ie "\\$2"4.0"       \c
 +.	ie "\\$2"2"      .ds oS FreeBSD 2.0
 +.	el               .ds oS FreeBSD \\$2
 +.	    ie \\n(.$==1        .
 +.	el .ie "\\$2"1.0"       .
 +.	el .ie "\\$2"1.1"       .
 +.	el .ie "\\$2"1.1.5"     .
 +.	el .ie "\\$2"1.1.5.1"   .
 +.	el .ie "\\$2"2"         .
 +.	el .ie "\\$2"2.0"       .
 +.	el .ie "\\$2"2.0.5"     .
 +.	el .ie "\\$2"2.1"       .
 +.	el .ie "\\$2"2.1.5"     .
 +.	el .ie "\\$2"2.1.6"     .
 +.	el .ie "\\$2"2.1.7"     .
 +.	el .ie "\\$2"2.2"       .
 +.	el .ie "\\$2"2.2.1"     .
 +.	el .ie "\\$2"2.2.2"     .
 +.	el .ie "\\$2"2.2.5"     .
 +.	el .ie "\\$2"2.2.6"     .
 +.	el .ie "\\$2"2.2.7"     .
 +.	el .ie "\\$2"2.2.8"     .
 +.	el .ie "\\$2"3.0"       .
 +.	el .ie "\\$2"3.1"       .
 +.	el .ie "\\$2"3.2"       .
 +.	el .ie "\\$2"3.3"       .
 +.	el .ie "\\$2"4.0"       .
  .	el .tm Unknown FreeBSD version ``\\$2'' at line \\n(c.
  .\}
  .if "\\*(oS"Null" \{\
 
Responsible-Changed-From-To: freebsd-bugs->mpp 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Sun Sep 26 23:46:44 PDT 1999 
Responsible-Changed-Why:  
I'm sure Mike will want to have a look at this one. 
State-Changed-From-To: open->closed 
State-Changed-By: mpp 
State-Changed-When: Thu May 4 18:26:25 PDT 2000 
State-Changed-Why:  
This was fixed by rev 1.20 of contrib/groff/tmac/doc-common. 
>Unformatted:
