--- loncom/xml/londefdef.pm 2002/02/21 04:10:31 1.42 +++ loncom/xml/londefdef.pm 2002/02/21 04:29:27 1.43 @@ -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 @@ EDITBUTTON $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 {