Skip site navigation (1)Skip section navigation (2)
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>
In-Reply-To: <200205041000.g44A07q91990@freefall.freebsd.org>
References:  <200205041000.g44A07q91990@freefall.freebsd.org>

index | next in thread | previous in thread | raw e-mail

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



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020504145158.GA5911>