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

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 16 Sep 2002 19:29:06 -0000


albertel		Mon Sep 16 15:29:06 2002 EDT

  Modified files:              
    /loncom/xml	lontexconvert.pm 
  Log:
  - Supports both methods of entering edisplya mode
  
  - also returns the error message if there was one
  
  
Index: loncom/xml/lontexconvert.pm
diff -u loncom/xml/lontexconvert.pm:1.7 loncom/xml/lontexconvert.pm:1.8
--- loncom/xml/lontexconvert.pm:1.7	Tue Jul 30 08:42:13 2002
+++ loncom/xml/lontexconvert.pm	Mon Sep 16 15:29:06 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # TeX Conversion Module
 #
-# $Id: lontexconvert.pm,v 1.7 2002/07/30 12:42:13 www Exp $
+# $Id: lontexconvert.pm,v 1.8 2002/09/16 19:29:06 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -108,9 +108,10 @@
       &tth::tthinit();
       &tth::tthoptions("-L");
     }
+    $message=~s/(\$\$.+?\$\$)/&converted(\$1)/ge;
     $message=~s/(\$.+?\$)/&converted(\$1)/ge;
     $message=~s/(\\\[.+?\\\])/&converted(\$1)/ge;
-    return $message;
+    return $message.$errorstring;
 }
 
 1;