summaryrefslogtreecommitdiffstats
path: root/www/txt2html.pl
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2007-01-08 23:52:01 +0000
committerBjörn Stenberg <bjorn@haxx.se>2007-01-08 23:52:01 +0000
commit6d4c19707ef95942e323cbdc89fbbfdbe45e7cc5 (patch)
treed11bbebc69df06d60970d05b4816e13d93602f2d /www/txt2html.pl
parent8cece5a745f30234bfced4becfd9dfe4ca1047d4 (diff)
downloadrockbox-6d4c19707ef95942e323cbdc89fbbfdbe45e7cc5.tar.gz
rockbox-6d4c19707ef95942e323cbdc89fbbfdbe45e7cc5.zip
Splitting out www
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11952 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'www/txt2html.pl')
-rwxr-xr-xwww/txt2html.pl28
1 files changed, 0 insertions, 28 deletions
diff --git a/www/txt2html.pl b/www/txt2html.pl
deleted file mode 100755
index 5a532cdead..0000000000
--- a/www/txt2html.pl
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/perl
-
-# this is really a faq2html and should only be used for this purpose
-
-sub fixline {
- # change blank lines to &nbsp
- $_ =~ s/^\s*$/\&nbsp;\n/g;
-
- $_ =~ s/\</&lt;/g;
- $_ =~ s/\>/&gt;/g;
-
- $_ =~ s/(http:\/\/([a-zA-Z0-9_.\#\/-\?\&]*)[^\) .\n])/\<a href=\"$1\"\>$1\<\/a\>/g;
-
- $_ =~ s/(\\|\/)$/$1&nbsp;/g; # clobber backslash on end of line
-}
-
-while(<STDIN>) {
- fixline($_);
- push @p, "$_";
-}
-
-print "<pre>\n";
-print @p;
-print "</pre>\n";
-
-
-
-