--- loncom/homework/imageresponse.pm 2006/05/30 12:45:37 1.78 +++ loncom/homework/imageresponse.pm 2006/11/06 11:56:23 1.79 @@ -2,7 +2,7 @@ # The LearningOnline Network with CAPA # image click response style # -# $Id: imageresponse.pm,v 1.78 2006/05/30 12:45:37 www Exp $ +# $Id: imageresponse.pm,v 1.79 2006/11/06 11:56:23 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -544,6 +544,7 @@ 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.'}';