Permalink
Browse files

bugfix ... quotes are now properly escaped

  • Loading branch information...
1 parent 4665a3b commit 541ba0b4f5cdbab2e85177c3aec41a255f37b480 @ap0calypse committed Apr 19, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 bzg
View
@@ -1070,9 +1070,10 @@ sub convert_text {
print $LATEXFD $_ . "\n";
}
elsif ($in_code) {
- $_ =~ s/'/´/gmx;
- $finaltext .= `echo '$_' | highlight -s 'bclear' -I -f -l -m $line_number --inline-css -S $code_lang` if $want_ln;
- $finaltext .= `echo '$_' | highlight -s 'bclear' -I -f --inline-css -S $code_lang` unless $want_ln;
+ $_ =~ s/"/\\"/gmx;
+ $_ =~ s/\$/dolsign/gmx;
+ $finaltext .= `echo "$_" | sed -e 's/\"/"/g' | sed -e 's/dolsign/\$/g' | highlight -s 'bclear' -I -f -l -m $line_number --inline-css -S $code_lang` if $want_ln;
+ $finaltext .= `echo "$_" | sed -e 's/\"/"/g' | sed -e 's/dolsign/\$/g' | highlight -s 'bclear' -I -f --inline-css -S $code_lang` unless $want_ln;
$line_number++;
}
elsif ($in_gnuplot) {

1 comment on commit 541ba0b

@ap0calypse
Owner

please don't judge me .... i kow that this is some ugly shit ...

Please sign in to comment.