From owner-freebsd-doc Sat May 4 7:52: 8 2002 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 ; 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 To: Oliver Fischer Cc: freebsd-doc@FreeBSD.org Subject: Re: docs/37667: FreeBSD Hypertext Man Pages have problems with tailing spaces Message-ID: <20020504145158.GA5911@submonkey.net> Mail-Followup-To: Ceri Davies , Oliver Fischer , freebsd-doc@FreeBSD.org 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 Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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