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

sakharuk lon-capa-cvs@mail.lon-capa.org
Tue, 23 Jul 2002 14:17:45 -0000


sakharuk		Tue Jul 23 10:17:45 2002 EDT

  Modified files:              
    /loncom/xml	lonxml.pm 
  Log:
  Corrections for > and < symbols in text mode (not in math).
  
  
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.182 loncom/xml/lonxml.pm:1.183
--- loncom/xml/lonxml.pm:1.182	Tue Jul 16 11:02:31 2002
+++ loncom/xml/lonxml.pm	Tue Jul 23 10:17:45 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # XML Parser Module 
 #
-# $Id: lonxml.pm,v 1.182 2002/07/16 15:02:31 sakharuk Exp $
+# $Id: lonxml.pm,v 1.183 2002/07/23 14:17:45 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -554,6 +554,8 @@
 		    } else {
 			if ($token->[1]=~m/\^/) {$token->[1]=~s/\^/}\\verb|\^|{/g;}
 		    }
+		    if ($token->[1]=~m/>/) {$token->[1]=~s/>/\$>\$/g;}
+		    if ($token->[1]=~m/</) {$token->[1]=~s/</\$<\$/g;}
 		}
 	    }
 	  $result.=$token->[1];