diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-08-16 08:42:43 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-08-16 08:42:43 +0000 |
commit | a8537543a127d429cf6f644bf9c6f792f8f89139 (patch) | |
tree | 3fc22dd6dfcd67604718a3fbcf04eab64582f138 /www | |
parent | 0dfb0bb1c04523a42a9ce3e6da054ba951caa17b (diff) | |
download | rockbox-a8537543a127d429cf6f644bf9c6f792f8f89139.tar.gz rockbox-a8537543a127d429cf6f644bf9c6f792f8f89139.zip |
use this script to convert a plain ASCII text into something that looks
fine in HTML
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1776 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'www')
-rwxr-xr-x | www/txt2plain.pl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/www/txt2plain.pl b/www/txt2plain.pl new file mode 100755 index 0000000000..eb630acad0 --- /dev/null +++ b/www/txt2plain.pl | |||
@@ -0,0 +1,11 @@ | |||
1 | #!/usr/bin/perl | ||
2 | |||
3 | while(<STDIN>) { | ||
4 | |||
5 | $_ =~ s/\</</g; | ||
6 | $_ =~ s/\>/>/g; | ||
7 | |||
8 | $_ =~ s/^$/\ /g; | ||
9 | |||
10 | print $_; | ||
11 | } | ||