--- loncom/xml/lonxml.pm 2004/07/07 20:43:20 1.326 +++ loncom/xml/lonxml.pm 2004/07/08 14:35:12 1.327 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.326 2004/07/07 20:43:20 albertel Exp $ +# $Id: lonxml.pm,v 1.327 2004/07/08 14:35:12 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -389,6 +389,7 @@ sub latex_special_symbols { } else { $string=~s/\\/\\ensuremath{\\backslash}/g; $string=~s/([^\\]|^)\%/$1\\\%/g; + $string=~s/\b_{2,}\b/ \\makebox\[1 cm\]\[b\]{\\hrulefill}/g; $string=~s/([^\\]|^)(\$|_)/$1\\$2/g; $string=~s/\$\$/\$\\\$/g; $string=~s/\#\#/\#\\\#/g; @@ -1334,6 +1335,7 @@ sub debug { my $request=$Apache::lonxml::request; if (!$request) { $request=Apache->request; } $request->print('
DEBUG:'.&HTML::Entities::encode($_[0],'<>&"')."
\n"); +# &Apache::lonnet::logthis($_[0]); } }