account for the # in anchor tags
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3483 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8025685146
commit
8c8a606601
2 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/perl
|
||||
#!/usr/local/bin/perl
|
||||
|
||||
# this is really a faq2html and should only be used for this purpose
|
||||
|
||||
|
@ -6,7 +6,7 @@ sub fixline {
|
|||
$_ =~ s/\</</g;
|
||||
$_ =~ s/\>/>/g;
|
||||
|
||||
$_ =~ s/(http:\/\/([a-zA-Z0-9_.\/-]*)[^\) .\n])/\<a href=\"$1\"\>$1\<\/a\>/g;
|
||||
$_ =~ s/(http:\/\/([a-zA-Z0-9_.\#\/-]*)[^\) .\n])/\<a href=\"$1\"\>$1\<\/a\>/g;
|
||||
|
||||
$_ =~ s/(\\|\/)$/$1 /g; # clobber backslash on end of line
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ sub fixline {
|
|||
$_ =~ s/\</</g;
|
||||
$_ =~ s/\>/>/g;
|
||||
|
||||
$_ =~ s/(http:\/\/([a-zA-Z0-9_.\/-]*)[^\) .\n])/\<a href=\"$1\"\>$1\<\/a\>/g;
|
||||
$_ =~ s/(http:\/\/([a-zA-Z0-9_.\#\/-]*)[^\) .\n])/\<a href=\"$1\"\>$1\<\/a\>/g;
|
||||
|
||||
$_ =~ s/(\\|\/)$/$1 /g; # clobber backslash on end of line
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue