Bug 37667

Summary: FreeBSD Hypertext Man Pages have problems with tailing spaces
Product: Documentation Reporter: plexus <plexus>
Component: Books & ArticlesAssignee: Wolfram Schneider <wosch>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.dat none

Description plexus 2002-05-02 15:30:01 UTC
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. :-(
Comment 1 Dima Dorfman 2002-05-03 07:03:30 UTC
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.
Comment 2 plexus 2002-05-04 10:59:01 UTC
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.
>
>
Comment 3 setantae 2002-05-04 15:53:36 UTC
Adding to audit trail.

Ceri
-- 
get the cool shoe shine
Comment 4 Ceri Davies freebsd_committer freebsd_triage 2002-05-04 16:04:07 UTC
Responsible Changed
From-To: freebsd-doc->wosch

Could you take a look at changing man.cgi to strip trailing whitespace from 
the query ?
Comment 5 Wolfram Schneider freebsd_committer freebsd_triage 2002-05-04 16:58:40 UTC
State Changed
From-To: open->closed

fixed, thanks!
Comment 6 setantae 2002-05-04 17:38:38 UTC
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
Comment 7 plexus 2002-05-05 13:18:37 UTC
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
>
>