--- loncom/homework/imageresponse.pm 2006/11/06 11:56:23 1.79 +++ loncom/homework/imageresponse.pm 2007/02/22 01:25:31 1.81 @@ -2,7 +2,7 @@ # The LearningOnline Network with CAPA # image click response style # -# $Id: imageresponse.pm,v 1.79 2006/11/06 11:56:23 foxr Exp $ +# $Id: imageresponse.pm,v 1.81 2007/02/22 01:25:31 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -346,6 +346,7 @@ sub end_foilgroup { if ($target eq 'web' || $target eq 'tex') { $result=&displayfoils($target,@whichopt); + $Apache::lonxml::post_evaluate=0; } elsif ($target eq 'grade') { if ( defined $env{'form.submitted'}) { &gradefoils(@whichopt); } } elsif ( $target eq 'analyze') { @@ -544,7 +545,6 @@ sub end_image { $graphinclude =~ s/^$commentline//; } else { my ($path,$file) = &Apache::londefdef::get_eps_image($src); - $file =~ s/\ /\_/g; my ($height_param,$width_param)= &Apache::londefdef::image_size($src,0.3,$parstack,$safeeval); $graphinclude = '\graphicspath{{'.$path.'}}\includegraphics[width='.$width_param.' mm]{'.$file.'}';