--- loncom/xml/lonxml.pm 2006/07/03 10:34:30 1.414
+++ loncom/xml/lonxml.pm 2006/10/04 19:50:43 1.415.2.1
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# XML Parser Module
#
-# $Id: lonxml.pm,v 1.414 2006/07/03 10:34:30 foxr Exp $
+# $Id: lonxml.pm,v 1.415.2.1 2006/10/04 19:50:43 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -367,13 +367,13 @@ sub latex_special_symbols {
}
if ($where eq 'header') {
$string =~ s/\\/\$\\backslash\$/g; # \ -> $\backslash$ per LaTex line by line pg 10.
- $string =~ s/_/\\_/g; # _ -> \_
- $string =~ s/\^/\\\^{}/g; # ^ -> \^{}
$string =~ s/(\$|%|\{|\})/\\$1/g;
$string=&Apache::lonprintout::character_chart($string);
# any & or # leftover should be safe to just escape
$string=~s/([^\\])\&/$1\\\&/g;
$string=~s/([^\\])\#/$1\\\#/g;
+ $string =~ s/_/\\_/g; # _ -> \_
+ $string =~ s/\^/\\\^{}/g; # ^ -> \^{}
} else {
$string=~s/\\/\\ensuremath{\\backslash}/g;
$string=~s/\\\%|\%/\\\%/g;
@@ -1014,7 +1014,7 @@ sub store_counter {
}
sub remember_problem_counter {
- &Apache::lonnet::transfer_profile_to_env();
+ &Apache::lonnet::transfer_profile_to_env(undef,undef,1);
$state = $env{'form.counter'};
}
@@ -1025,7 +1025,7 @@ sub store_counter {
}
sub get_problem_counter {
if ($Apache::lonxml::counter_changed) { &store_counter() }
- &Apache::lonnet::transfer_profile_to_env();
+ &Apache::lonnet::transfer_profile_to_env(undef,undef,1);
return $env{'form.counter'};
}
}
@@ -1329,7 +1329,6 @@ $cleanbut
BUTTONS
$buttons.=&Apache::lonhtmlcommon::spelllink('xmledit','filecont');
- $buttons.=&Apache::lonhtmlcommon::htmlareaselectactive('filecont');
my $editfooter=(<