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

albertel lon-capa-cvs-allow@mail.lon-capa.org
Wed, 13 Jun 2007 00:21:04 -0000


albertel		Tue Jun 12 20:21:04 2007 EDT

  Modified files:              
    /loncom/xml	lontexconvert.pm 
  Log:
  - was incorreclyt trying to clean out all $ that weren't \$, now correct
  
  
Index: loncom/xml/lontexconvert.pm
diff -u loncom/xml/lontexconvert.pm:1.81 loncom/xml/lontexconvert.pm:1.82
--- loncom/xml/lontexconvert.pm:1.81	Thu Nov  9 16:31:54 2006
+++ loncom/xml/lontexconvert.pm	Tue Jun 12 20:21:03 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # TeX Conversion Module
 #
-# $Id: lontexconvert.pm,v 1.81 2006/11/09 21:31:54 albertel Exp $
+# $Id: lontexconvert.pm,v 1.82 2007/06/13 00:21:03 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -151,7 +151,7 @@
 
 sub clean_out_math_mode {
     my ($texstring)=@_;
-    $$texstring=~s/(?!\\)\$//g;
+    $$texstring=~s/(?<!\\)\$//g;
     $$texstring=~s/\\[\)\(\]\[]//g;
     $$texstring=~s/\\ensuremath//g;
     return '';