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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 16 Aug 2005 16:29:53 -0000


albertel		Tue Aug 16 12:29:53 2005 EDT

  Modified files:              
    /loncom/xml	lontexconvert.pm 
  Log:
  - be case insensitive about the display value
  
  
Index: loncom/xml/lontexconvert.pm
diff -u loncom/xml/lontexconvert.pm:1.67 loncom/xml/lontexconvert.pm:1.68
--- loncom/xml/lontexconvert.pm:1.67	Tue Jul  5 14:59:03 2005
+++ loncom/xml/lontexconvert.pm	Tue Aug 16 12:29:53 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # TeX Conversion Module
 #
-# $Id: lontexconvert.pm,v 1.67 2005/07/05 18:59:03 albertel Exp $
+# $Id: lontexconvert.pm,v 1.68 2005/08/16 16:29:53 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -208,11 +208,11 @@
 sub converted {
     my ($string,$mode)=@_;
     if ($mode eq '') { $mode=$env{'environment.texengine'}; }
-    if ($mode eq 'tth') {
+    if ($mode =~ /tth/i) {
 	return &tth_converted($string);
-    } elsif ($mode eq 'jsMath') {
+    } elsif ($mode =~ /jsmath/i) {
 	return &jsMath_converted($string);
-    } elsif ($mode eq 'mimetex') {
+    } elsif ($mode =~ /mimetex/i) {
 	return &mimetex_converted($string);
     }
     return &tth_converted($string);