Diff for scripts/cgi/cvsweb/cvsweb.cgi between version 1.22 and 1.23
| version 1.22, 2003/02/01 01:09:14 |
version 1.23, 2003/02/20 13:55:46 |
|
|
| # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| # SUCH DAMAGE. |
# SUCH DAMAGE. |
| # |
# |
| # $FreeBSD: /home/ncvs/projects/cvsweb/cvsweb.cgi,v 1.142 2002/12/23 16:19:53 scop Exp $ |
# $FreeBSD: projects/cvsweb/cvsweb.cgi,v 1.143 2003/02/11 11:41:00 knu Exp $ |
| # $Id$ |
# $Id$ |
| # $Idaemons: /home/cvs/cvsweb/cvsweb.cgi,v 1.84 2001/10/07 20:50:10 knu Exp $ |
# $Idaemons: /home/cvs/cvsweb/cvsweb.cgi,v 1.84 2001/10/07 20:50:10 knu Exp $ |
| # |
# |
| # DONT'T delete lines between '$''Idaemons' and '$''Platon' -- patches from FreeBSD failed then |
# DONT'T delete lines between '$''Idaemons' and '$''Platon' -- patches from FreeBSD failed then |
| # $Platon: scripts/cgi/cvsweb/cvsweb.cgi,v 1.21 2003/02/01 01:08:35 rajo Exp $ |
# $Platon: scripts/cgi/cvsweb/cvsweb.cgi,v 1.22 2003/02/01 01:09:14 rajo Exp $ |
| # |
# |
| ### |
### |
| |
|
| Line 1302 sub htmlify($;$) |
|
| Line 1302 sub htmlify($;$) |
|
| if (defined($mancgi)) { |
if (defined($mancgi)) { |
| $_ = htmlify_sub { |
$_ = htmlify_sub { |
| s{ |
s{ |
| (\b([a-zA-Z][\w.]+) |
( |
| |
\b ( \w[\w+\-.]* (?: ::\w[\w+\-.]*)* ) |
| (?: |
(?: |
| \( ([0-9n]) \)\B |
\( ([0-9n]) \) \B |
| | |
| |
| \.([0-9n])\b |
\. ([0-9n]) \b |
| ) |
) |
| ) |
) |
| }{ |
}{ |
| &link($1, sprintf($mancgi, defined($3) ? $3 : $4, $2)) |
my($text, $name, $section) = ($1, $2, defined($3) ? $3 : $4); |
| |
($name =~ /[^\d:]/ && $name !~ /\.(:|$)/) |
| |
? &link($text, sprintf($mancgi, $section, $name)) |
| |
: $text; |
| }egx; |
}egx; |
| } $_; |
} $_; |
| } |
} |
Platon Group <platon@platon.org> http://platon.org/
|
|