[LON-CAPA-cvs] cvs: loncom /xml londefdef.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 21 Feb 2002 04:29:27 -0000


albertel		Wed Feb 20 23:29:27 2002 EDT

  Modified files:              
    /loncom/xml	londefdef.pm 
  Log:
  - stupid typo, sometimes I should test my regexps before assuming they work
  
  
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.42 loncom/xml/londefdef.pm:1.43
--- loncom/xml/londefdef.pm:1.42	Wed Feb 20 23:10:31 2002
+++ loncom/xml/londefdef.pm	Wed Feb 20 23:29:27 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Tags Default Definition Module 
 #
-# $Id: londefdef.pm,v 1.42 2002/02/21 04:10:31 albertel Exp $
+# $Id: londefdef.pm,v 1.43 2002/02/21 04:29:27 albertel Exp $
 # 
 #
 # Copyright Michigan State University Board of Trustees
@@ -1352,7 +1352,7 @@
 		$path = $Apache::lonxml::pwd[-1];
 		$file = $src;
 	      }
-	      $file=~s/(\.gif|\.jpg)^/\.eps/;
+	      $file=~s/(\.gif|\.jpg)$/\.eps/;
 	      if ($path) {
 		$currentstring = '\graphicspath{{'.$path.'}}\fbox{\includegraphics{'.$file.'}}';
 	      } else {