Re: Nit: incorrect HTML anchor in ipsec.conf manpage (4.1, 4.2, CURRENT)
Stéphane Chausson <[email protected]>
| Newsgroups | gmane.os.openbsd.www,gmane.os.openbsd.bugs |
|---|---|
| Message-ID | <[email protected]> |
Jason McIntyre wrote, On 4/11/07 15:01: > On Sun, Nov 04, 2007 at 07:35:05AM -0600, Walter Goulet wrote: >> The manpage for ipsec.conf >> (http://www.openbsd.org/cgi-bin/man.cgi?query=ipsec.conf&apropos=0&sektion=0&manpath=OpenBSD+4.1&arch=i386&format=html) >> has an incorrect HTML anchor applied to the 'null (none)' encryption >> cipher (clicking on the link runs an invalid query on the web manpage >> interface). >> > > the web pages are generated from the nroff source, and are not always > perfect. i've no idea why that bit shows up as a link, but i doubt it > can be easily fixed. > > jmc > > This as to with the way man.cgi search and replace references to manpages with hyperlinks. I am not used to Perl but it seems the magic appends with this line s,((<[IB]>)?[\w\_\.\-]+\s*(</[IB]>)?\s*\(([1-9ln][a-zA-Z]*)\)),&mlnk($1),oige; The link is created because the word in parenthesis begins with a 'n'. It could happen with any word beginning with a 'L' too. As I said I don't know Perl language quite well but maybe a solution could be to use the %section array defined at the top of the script to build the part of regexp searching for word in parenthesis.