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

foxr lon-capa-cvs@mail.lon-capa.org
Mon, 23 May 2005 11:03:02 -0000


foxr		Mon May 23 07:03:02 2005 EDT

  Modified files:              
    /loncom/homework	imageresponse.pm 
  Log:
  Allow end of line matching in stripping trailing whitespace.
  
  
Index: loncom/homework/imageresponse.pm
diff -u loncom/homework/imageresponse.pm:1.68 loncom/homework/imageresponse.pm:1.69
--- loncom/homework/imageresponse.pm:1.68	Tue May 10 07:24:01 2005
+++ loncom/homework/imageresponse.pm	Mon May 23 07:02:59 2005
@@ -2,7 +2,7 @@
 # The LearningOnline Network with CAPA
 # image click response style
 #
-# $Id: imageresponse.pm,v 1.68 2005/05/10 11:24:01 foxr Exp $
+# $Id: imageresponse.pm,v 1.69 2005/05/23 11:02:59 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -470,8 +470,8 @@
 
 	#  There may be all sorts of whitespace on fore and aft:
 
-	$src =~ s/\s+$//;
-	$src =~ s/^\s+//;
+	$src =~ s/\s+$//s;
+	$src =~ s/^\s+//s;
 
 	#
 	#  Gnuplot e.g. just generates the latex to put inplace.