--- loncom/xml/lonxml.pm 2003/07/08 14:49:30 1.266 +++ loncom/xml/lonxml.pm 2003/08/04 14:30:34 1.267 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.266 2003/07/08 14:49:30 bowersj2 Exp $ +# $Id: lonxml.pm,v 1.267 2003/08/04 14:30:34 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -492,6 +492,7 @@ sub latex_special_symbols { $current_token=~s/(>|<)/\$$1\$/g; #more or less if ($current_token=~m/\d%/) {$current_token =~ s/(\d)%/$1\\%/g;} #percent after digit if ($current_token=~m/\s%/) {$current_token =~ s/(\s)%/$1\\%/g;} #persent after space + if ($current_token eq '%.') {$current_token = '\%.';} #persent at the end of statement } return $current_token; } @@ -1049,7 +1050,7 @@ sub parstring { my $val=$token->[2]->{$_}; $val =~ s/([\%\@\\\"\'])/\\$1/g; #if ($val =~ m/^[\%\@]/) { $val="\\".$val; } - $temp .= "my \$$_=\"$val\";" + $temp .= "my \$$_=\"$val\";"; } } return $temp;