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

sakharuk lon-capa-cvs@mail.lon-capa.org
Thu, 08 Jul 2004 14:35:13 -0000


sakharuk		Thu Jul  8 10:35:13 2004 EDT

  Modified files:              
    /loncom/xml	lonxml.pm 
  Log:
  Transfered one line of the code from lonprintout.pm to lonxml.pm to fox a bug
  3175 (printing with ____).
  
  
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.326 loncom/xml/lonxml.pm:1.327
--- loncom/xml/lonxml.pm:1.326	Wed Jul  7 16:43:20 2004
+++ loncom/xml/lonxml.pm	Thu Jul  8 10:35:12 2004
@@ -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 @@
     } 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 @@
 	my $request=$Apache::lonxml::request;
 	if (!$request) { $request=Apache->request; }
 	$request->print('<font size="-2"><pre>DEBUG:'.&HTML::Entities::encode($_[0],'<>&"')."</pre></font>\n");
+#	&Apache::lonnet::logthis($_[0]);
     }
 }