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 | |
| parent | 0dfb0bb1c04523a42a9ce3e6da054ba951caa17b (diff) | |
| download | rockbox-a8537543a127d429cf6f644bf9c6f792f8f89139.zip rockbox-a8537543a127d429cf6f644bf9c6f792f8f89139.tar.gz rockbox-a8537543a127d429cf6f644bf9c6f792f8f89139.tar.bz2 rockbox-a8537543a127d429cf6f644bf9c6f792f8f89139.tar.xz | |
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
| -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 0000000..eb630ac --- /dev/null +++ b/www/txt2plain.pl @@ -0,0 +1,11 @@ +#!/usr/bin/perl + +while(<STDIN>) { + + $_ =~ s/\</</g; + $_ =~ s/\>/>/g; + + $_ =~ s/^$/\ /g; + + print $_; +} |