1ed48d4975
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1779 a1c6a512-1295-4272-9138-f99709370657
15 lines
298 B
Perl
Executable file
15 lines
298 B
Perl
Executable file
#!/usr/bin/perl
|
|
|
|
while(<STDIN>) {
|
|
|
|
$_ =~ 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 $_;
|
|
}
|