[LON-CAPA-cvs] cvs: loncom /homework imageresponse.pm

foxr lon-capa-cvs@mail.lon-capa.org
Mon, 06 Nov 2006 11:56:23 -0000


foxr		Mon Nov  6 06:56:23 2006 EDT

  Modified files:              
    /loncom/homework	imageresponse.pm 
  Log:
  Map spaces in image files to "_" .. still some work to do however.
  
  
Index: loncom/homework/imageresponse.pm
diff -u loncom/homework/imageresponse.pm:1.78 loncom/homework/imageresponse.pm:1.79
--- loncom/homework/imageresponse.pm:1.78	Tue May 30 08:45:37 2006
+++ loncom/homework/imageresponse.pm	Mon Nov  6 06:56:23 2006
@@ -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 @@
 	    $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.'}';