minor improvements
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1874 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
057b85a57b
commit
e62f191dcf
1 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@ sub fixline {
|
||||||
|
|
||||||
$_ =~ s/(http:\/\/([a-zA-Z0-9_.\/-]*)[^\) .\n])/\<a href=\"$1\"\>$1\<\/a\>/g;
|
$_ =~ 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
|
$_ =~ s/(\\|\/)$/$1 /g; # clobber backslash on end of line
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ while(<STDIN>) {
|
||||||
|
|
||||||
# detect and mark Q-sections
|
# detect and mark Q-sections
|
||||||
if( $_ =~ /^Q(\d*)/) {
|
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;
|
my $line;
|
||||||
while(<STDIN>) {
|
while(<STDIN>) {
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ while(<STDIN>) {
|
||||||
last;
|
last;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print "</p>\n<pre class=\"faqa\">\n$line";
|
print "</div>\n<pre class=\"faqa\">$line";
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue