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

sakharuk lon-capa-cvs@mail.lon-capa.org
Thu, 21 Aug 2003 15:51:41 -0000


sakharuk		Thu Aug 21 11:51:41 2003 EDT

  Modified files:              
    /loncom/xml	lonxml.pm 
  Log:
  Small change to fix bug 2062 (Cannot Print HW for a Class due some special LaTeX symbols). Continue to work with "\".
  
  
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.272 loncom/xml/lonxml.pm:1.273
--- loncom/xml/lonxml.pm:1.272	Wed Aug 13 14:57:28 2003
+++ loncom/xml/lonxml.pm	Thu Aug 21 11:51:41 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # XML Parser Module 
 #
-# $Id: lonxml.pm,v 1.272 2003/08/13 18:57:28 albertel Exp $
+# $Id: lonxml.pm,v 1.273 2003/08/21 15:51:41 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -482,6 +482,7 @@
     if ($where eq 'header') {
 	$string =~ s/(\\|_|\^)/ /g;
 	$string =~ s/(\$|%|\#|&|\{|\})/\\$1/g;
+	$string =~ s/_/ /g;
     } else {
 	$string=~s/\\ /\\char92 /g;
 	$string=~s/\^/\\char94 /g;