diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2002-08-21 11:19:20 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2002-08-21 11:19:20 +0000 |
| commit | e62f191dcfb2d4dbcd4c12b97673b276d6f661ef (patch) | |
| tree | cd7fe3f8a909903301b60e5af1823cc3e2f1724b | |
| parent | 057b85a57bebd74a17104a632c5e7ba4d9c671f2 (diff) | |
| download | rockbox-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-x | www/txt2plain.pl | 6 |
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/^$/\ /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(<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; } |