summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-08-21 11:19:20 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-08-21 11:19:20 +0000
commite62f191dcfb2d4dbcd4c12b97673b276d6f661ef (patch)
treecd7fe3f8a909903301b60e5af1823cc3e2f1724b
parent057b85a57bebd74a17104a632c5e7ba4d9c671f2 (diff)
downloadrockbox-e62f191dcfb2d4dbcd4c12b97673b276d6f661ef.zip
rockbox-e62f191dcfb2d4dbcd4c12b97673b276d6f661ef.tar.gz
rockbox-e62f191dcfb2d4dbcd4c12b97673b276d6f661ef.tar.bz2
rockbox-e62f191dcfb2d4dbcd4c12b97673b276d6f661ef.tar.xz
minor improvements
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1874 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-xwww/txt2plain.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/www/txt2plain.pl b/www/txt2plain.pl
index 7264052..287e878 100755
--- a/www/txt2plain.pl
+++ b/www/txt2plain.pl
@@ -8,7 +8,7 @@ sub fixline {
$_ =~ s/(http:\/\/([a-zA-Z0-9_.\/-]*)[^\) .\n])/\<a href=\"$1\"\>$1\<\/a\>/g;
- $_ =~ s/^$/\&nbsp;/g; # empty lines are nbsp
+ $_ =~ s/^\s*$/\&nbsp;\n/g; # empty lines are nbsp
$_ =~ s/(\\|\/)$/$1&nbsp;/g; # clobber backslash on end of line
}
@@ -18,7 +18,7 @@ while(<STDIN>) {
# detect and mark Q-sections
if( $_ =~ /^Q(\d*)/) {
- print "</pre>\n<a name=\"$1\"></a><p class=\"faqq\">$_";
+ print "</pre>\n<a name=\"$1\"></a><div class=\"faqq\">$_";
my $line;
while(<STDIN>) {
@@ -32,7 +32,7 @@ while(<STDIN>) {
last;
}
}
- print "</p>\n<pre class=\"faqa\">\n$line";
+ print "</div>\n<pre class=\"faqa\">$line";
next;
}