From e62f191dcfb2d4dbcd4c12b97673b276d6f661ef Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 21 Aug 2002 11:19:20 +0000 Subject: [PATCH] minor improvements git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1874 a1c6a512-1295-4272-9138-f99709370657 --- www/txt2plain.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/txt2plain.pl b/www/txt2plain.pl index 72640522b6..287e8787d8 100755 --- a/www/txt2plain.pl +++ b/www/txt2plain.pl @@ -8,7 +8,7 @@ sub fixline { $_ =~ s/(http:\/\/([a-zA-Z0-9_.\/-]*)[^\) .\n])/\$1\<\/a\>/g; - $_ =~ s/^$/\ /g; # empty lines are nbsp + $_ =~ s/^\s*$/\ \n/g; # empty lines are nbsp $_ =~ s/(\\|\/)$/$1 /g; # clobber backslash on end of line } @@ -18,7 +18,7 @@ while() { # detect and mark Q-sections if( $_ =~ /^Q(\d*)/) { - print "\n

$_"; + print "\n

$_"; my $line; while() { @@ -32,7 +32,7 @@ while() { last; } } - print "

\n
\n$line";
+        print "
\n
$line";
         next;
     }