summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorRobert Hak <adiamas@rockbox.org>2002-08-28 08:03:27 +0000
committerRobert Hak <adiamas@rockbox.org>2002-08-28 08:03:27 +0000
commit728f5a7626d6672445fae31996c16b294de8ee5f (patch)
treee4914b082f742a588c4ae300157d7065e6f0a6b1 /www
parent8ef71bafff0ad16a2d856e68b127a43a3e6a2e99 (diff)
hack to fix CR's
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2021 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'www')
-rwxr-xr-xwww/txt2html.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/www/txt2html.pl b/www/txt2html.pl
index 8e88a4c1fa..43c7fffa27 100755
--- a/www/txt2html.pl
+++ b/www/txt2html.pl
@@ -3,6 +3,9 @@
# 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;