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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 03 Apr 2003 22:34:26 -0000


albertel		Thu Apr  3 17:34:26 2003 EDT

  Modified files:              
    /loncom/xml	lonxml.pm 
  Log:
  - partial fix of BUG#1348, now allows &[A-Z]
  
  
  
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.245 loncom/xml/lonxml.pm:1.246
--- loncom/xml/lonxml.pm:1.245	Thu Apr  3 17:25:49 2003
+++ loncom/xml/lonxml.pm	Thu Apr  3 17:34:26 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # XML Parser Module 
 #
-# $Id: lonxml.pm,v 1.245 2003/04/03 22:25:49 albertel Exp $
+# $Id: lonxml.pm,v 1.246 2003/04/03 22:34:26 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -475,7 +475,7 @@
 	$current_token=~s/\\ /\\char92 /g;
 	$current_token=~s/\^/\\char94 /g;
 	$current_token=~s/\~/\\char126 /g;
-	$current_token=~s/(&[^a-z\#])/\\$1/g;
+	$current_token=~s/(&[^A-Za-z\#])/\\$1/g;
 	$current_token=~s/([^&])\#/$1\\#/g;
 	$current_token=~s/(\$|_|{|})/\\$1/g;
 	$current_token=~s/\\char92 /\\texttt{\\char92}/g;