From nobody@FreeBSD.org  Thu May  2 07:21:29 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 030C837B417
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  2 May 2002 07:21:29 -0700 (PDT)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g42ELSs36855;
	Thu, 2 May 2002 07:21:28 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200205021421.g42ELSs36855@freefall.freebsd.org>
Date: Thu, 2 May 2002 07:21:28 -0700 (PDT)
From: Oliver Fischer <plexus@snafu.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: FreeBSD Hypertext Man Pages have problems with tailing spaces
X-Send-Pr-Version: www-1.0

>Number:         37667
>Category:       docs
>Synopsis:       FreeBSD Hypertext Man Pages have problems with tailing spaces
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    wosch
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 02 07:30:01 PDT 2002
>Closed-Date:    Sat May 04 08:59:18 PDT 2002
>Last-Modified:  Sun May  5 05:20:02 PDT 2002
>Originator:     Oliver Fischer
>Release:        
>Organization:
>Environment:
>Description:
If you enter a search term under 
http://www.FreeBSD.org/cgi/man.cgi like "route", it will display
the man page for route. If you enter "route ", it will find nothing. :-(
>How-To-Repeat:
      
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Dima Dorfman <dima@trit.org>
To: Oliver Fischer <plexus@snafu.de>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: docs/37667: FreeBSD Hypertext Man Pages have problems with tailing spaces 
Date: Fri, 03 May 2002 06:03:30 +0000

 Oliver Fischer <plexus@snafu.de> wrote:
 > >Description:
 > If you enter a search term under 
 > http://www.FreeBSD.org/cgi/man.cgi like "route", it will display
 > the man page for route. If you enter "route ", it will find nothing. :-(
 
 I don't think this is really a bug.  man(1) does the same thing:
 
 	dima@spike% man 'route '
 	No manual entry for route 
 
 I don't really see any reason for ignoring trailing whitespace, but if
 we do, we should do it everywhere, not just on the web site.

From: "Oliver Fischer" <plexus@snafu.de>
To: "Dima Dorfman" <dima@trit.org>
Cc: <freebsd-gnats-submit@FreeBSD.org>
Subject: Re: docs/37667: FreeBSD Hypertext Man Pages have problems with tailing spaces 
Date: Sat, 4 May 2002 11:59:01 +0200

 Hm, I used the quotes only to show the space after the keyword. If I
 enter >>man route    << I will show me the man page independend of the
 number of blanks. I think it want be much work to remove the tailing
 white spaces.
 
 Bye
 
 Oliver
 
 ----- Original Message -----
 From: "Dima Dorfman" <dima@trit.org>
 To: "Oliver Fischer" <plexus@snafu.de>
 Cc: <freebsd-gnats-submit@FreeBSD.org>
 Sent: Friday, May 03, 2002 8:03 AM
 Subject: Re: docs/37667: FreeBSD Hypertext Man Pages have problems
 with tailing spaces
 
 
 > Oliver Fischer <plexus@snafu.de> wrote:
 > > >Description:
 > > If you enter a search term under
 > > http://www.FreeBSD.org/cgi/man.cgi like "route", it will display
 > > the man page for route. If you enter "route ", it will find
 nothing. :-(
 >
 > I don't think this is really a bug.  man(1) does the same thing:
 >
 > dima@spike% man 'route '
 > No manual entry for route
 >
 > I don't really see any reason for ignoring trailing whitespace, but
 if
 > we do, we should do it everywhere, not just on the web site.
 >
 >
 

From: Ceri Davies <setantae@submonkey.net>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: docs/37667: FreeBSD Hypertext Man Pages have problems with tailing spaces
Date: Sat, 4 May 2002 15:53:36 +0100

 --J/dobhs11T7y2rNN
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Adding to audit trail.
 
 Ceri
 -- 
 get the cool shoe shine
 
 --J/dobhs11T7y2rNN
 Content-Type: message/rfc822
 Content-Disposition: inline
 
 Return-path: <owner-freebsd-doc@FreeBSD.ORG>
 Envelope-to: setantae@submonkey.net
 Delivery-date: Sat, 04 May 2002 15:52:12 +0100
 Received: from shaft.techsupport.co.uk ([212.250.77.214])
 	by rhadamanth.submonkey.net with esmtp (Exim 3.36 #1)
 	id 1740tQ-0001c1-00
 	for setantae@submonkey.net; Sat, 04 May 2002 15:52:12 +0100
 Received: from mx2.freebsd.org ([216.136.204.119])
 	by shaft.techsupport.co.uk with esmtp (Exim 3.36 #1)
 	id 1740tQ-00043H-00
 	for setantae@submonkey.net; Sat, 04 May 2002 15:52:12 +0100
 Received: from hub.freebsd.org (hub.FreeBSD.org [216.136.204.18])
 	by mx2.freebsd.org (Postfix) with ESMTP
 	id DBE53559FA; Sat,  4 May 2002 07:52:08 -0700 (PDT)
 	(envelope-from owner-freebsd-doc@FreeBSD.ORG)
 Received: by hub.freebsd.org (Postfix, from userid 538)
 	id C4D0337B41B; Sat,  4 May 2002 07:52:07 -0700 (PDT)
 Received: from localhost (localhost [127.0.0.1])
 	by hub.freebsd.org (Postfix) with SMTP
 	id BBC172E8000; Sat,  4 May 2002 07:52:07 -0700 (PDT)
 Received: by hub.freebsd.org (bulk_mailer v1.12); Sat, 4 May 2002 07:52:07 -0700
 Delivered-To: freebsd-doc@freebsd.org
 Received: from rhadamanth.submonkey.net (pc4-card4-0-cust162.cdf.cable.ntl.com [80.4.14.162])
 	by hub.freebsd.org (Postfix) with ESMTP id 3E1B437B419
 	for <freebsd-doc@freebsd.org>; Sat,  4 May 2002 07:52:05 -0700 (PDT)
 Received: from setantae by rhadamanth.submonkey.net with local (Exim 3.36 #1)
 	id 1740tC-0001by-00; Sat, 04 May 2002 15:51:58 +0100
 Date: Sat, 4 May 2002 15:51:58 +0100
 From: Ceri Davies <setantae@submonkey.net>
 To: Oliver Fischer <plexus@snafu.de>
 Cc: freebsd-doc@FreeBSD.org
 Subject: Re: docs/37667: FreeBSD Hypertext Man Pages have problems with tailing spaces
 Message-ID: <20020504145158.GA5911@submonkey.net>
 References: <200205041000.g44A07q91990@freefall.freebsd.org>
 Mime-Version: 1.0
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 In-Reply-To: <200205041000.g44A07q91990@freefall.freebsd.org>
 User-Agent: Mutt/1.3.28i
 Sender: owner-freebsd-doc@FreeBSD.ORG
 List-ID: <freebsd-doc.FreeBSD.ORG>
 List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
 List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
 List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-doc>
 List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-doc>
 X-Loop: FreeBSD.org
 Precedence: bulk
 
 On Sat, May 04, 2002 at 03:00:07AM -0700, Oliver Fischer wrote:
 > 
 >  Hm, I used the quotes only to show the space after the keyword. If I
 >  enter >>man route    << I will show me the man page independend of the
 >  number of blanks. I think it want be much work to remove the tailing
 >  white spaces.
 
 Something like this should sort it :
 
 --- man.cgi.old	Sat May  4 15:47:25 2002
 +++ man.cgi	Sat May  4 15:50:17 2002
 @@ -349,6 +349,7 @@
  	return &man($1, $2);
      }
  
 +    $form{'query'} =~ s/\s+$//;
      $name = $query = $form{'query'};
      $section = $form{'sektion'};
      $apropos = $form{'apropos'};
 
 I'll have to send this over to wosch to see what he thinks.
 
 Ceri
 
 -- 
 get the cool shoe shine
 
 To Unsubscribe: send mail to majordomo@FreeBSD.org
 with "unsubscribe freebsd-doc" in the body of the message
 
 --J/dobhs11T7y2rNN--
Responsible-Changed-From-To: freebsd-doc->wosch 
Responsible-Changed-By: ceri 
Responsible-Changed-When: Sat May 4 08:04:07 PDT 2002 
Responsible-Changed-Why:  
Could you take a look at changing man.cgi to strip trailing whitespace from 
the query ? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37667 
State-Changed-From-To: open->closed 
State-Changed-By: wosch 
State-Changed-When: Sat May 4 08:58:40 PDT 2002 
State-Changed-Why:  
fixed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37667 

From: Ceri Davies <setantae@submonkey.net>
To: Oliver Fischer <plexus@snafu.de>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: docs/37667: FreeBSD Hypertext Man Pages have problems with tailing spaces
Date: Sat, 4 May 2002 17:38:38 +0100

 On Sat, May 04, 2002 at 03:51:58PM +0100, Ceri Davies wrote:
 > On Sat, May 04, 2002 at 03:00:07AM -0700, Oliver Fischer wrote:
 > > 
 > >  Hm, I used the quotes only to show the space after the keyword. If I
 > >  enter >>man route    << I will show me the man page independend of the
 > >  number of blanks. I think it want be much work to remove the tailing
 > >  white spaces.
 
 This has been done now - can you confirm it's ok ?
 
 Ceri
 
 -- 
 get the cool shoe shine

From: "Oliver Fischer" <plexus@snafu.de>
To: "Ceri Davies" <setantae@submonkey.net>
Cc: <freebsd-gnats-submit@freebsd.org>
Subject: Re: docs/37667: FreeBSD Hypertext Man Pages have problems with tailing spaces
Date: Sun, 5 May 2002 14:18:37 +0200

 Yes, it works fine.
 
 Thanks,
 
 Oliver
 
 ----- Original Message -----
 From: "Ceri Davies" <setantae@submonkey.net>
 To: "Oliver Fischer" <plexus@snafu.de>
 Cc: <freebsd-gnats-submit@freebsd.org>
 Sent: Saturday, May 04, 2002 6:38 PM
 Subject: Re: docs/37667: FreeBSD Hypertext Man Pages have problems
 with tailing spaces
 
 
 > On Sat, May 04, 2002 at 03:51:58PM +0100, Ceri Davies wrote:
 > > On Sat, May 04, 2002 at 03:00:07AM -0700, Oliver Fischer wrote:
 > > >
 > > >  Hm, I used the quotes only to show the space after the keyword.
 If I
 > > >  enter >>man route    << I will show me the man page independend
 of the
 > > >  number of blanks. I think it want be much work to remove the
 tailing
 > > >  white spaces.
 >
 > This has been done now - can you confirm it's ok ?
 >
 > Ceri
 >
 > --
 > get the cool shoe shine
 >
 >
 
>Unformatted:
