--- loncom/xml/londefdef.pm 2008/10/02 17:12:19 1.393 +++ loncom/xml/londefdef.pm 2008/11/10 11:17:50 1.396 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Tags Default Definition Module # -# $Id: londefdef.pm,v 1.393 2008/10/02 17:12:19 raeburn Exp $ +# $Id: londefdef.pm,v 1.396 2008/11/10 11:17:50 foxr Exp $ # # # Copyright Michigan State University Board of Trustees @@ -139,7 +139,7 @@ sub start_m { # detect simple math mode entry exits, and convert them # to use \ensuremath ... unless there's a \verb inside. if (! ($currentstring=~/\\verb/)) { - if ($currentstring=~/^\s*\$[^\$].*[^\$]\$\s*$/) { + if ($currentstring=~/^\s*\$[^\$].*\$\s*$/) { $currentstring=~s/^(\s*)\$/$1/; $currentstring=~s/\$(\s*)$/$1/; $currentstring='\ensuremath{'.$currentstring.'}'; @@ -610,7 +610,7 @@ sub edit_controls { &Apache::lonxml::renderingoptions().' -
+