forked from len0rd/rockbox
basic slash treatment and URL-linking added
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1779 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1880165e2e
commit
1ed48d4975
1 changed files with 5 additions and 1 deletions
|
@ -5,7 +5,11 @@ while(<STDIN>) {
|
||||||
$_ =~ s/\</</g;
|
$_ =~ s/\</</g;
|
||||||
$_ =~ s/\>/>/g;
|
$_ =~ s/\>/>/g;
|
||||||
|
|
||||||
$_ =~ s/^$/\ /g;
|
$_ =~ s/(http:\/\/([a-zA-Z0-9_.\/-]*)[^).])/\<a href=\"$1\"\>$1\<\/a\>/g;
|
||||||
|
|
||||||
|
$_ =~ s/^$/\ /g; # empty lines are nbsp
|
||||||
|
$_ =~ s/(\\|\/)$/$1 /g; # clobber backslash on end of line
|
||||||
|
|
||||||
|
|
||||||
print $_;
|
print $_;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue