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

www lon-capa-cvs@mail.lon-capa.org
Wed, 24 Jul 2002 21:18:36 -0000


www		Wed Jul 24 17:18:36 2002 EDT

  Modified files:              
    /loncom/xml	lonxml.pm 
  Log:
  Bug #83
  Math in discussion.
  
  Does not need <m> to work.
  
  
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.184 loncom/xml/lonxml.pm:1.185
--- loncom/xml/lonxml.pm:1.184	Wed Jul 24 16:25:23 2002
+++ loncom/xml/lonxml.pm	Wed Jul 24 17:18:36 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # XML Parser Module 
 #
-# $Id: lonxml.pm,v 1.184 2002/07/24 20:25:23 www Exp $
+# $Id: lonxml.pm,v 1.185 2002/07/24 21:18:36 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -176,6 +176,9 @@
 		unless (($hidden) && (!$seeid)) {
                  my $message=$contrib{$idx.':message'};
                  $message=~s/\n/\<br \/\>/g;
+                 if (($message=~/\$.+\$/) || ($message=~/\\\[.+\\\]/)) {
+		     $message=&Apache::lontexconvert::converted(\$message);
+                 }
                  if ($message) {
                   if ($hidden) {
 		      $message='<font color="#888888">'.$message.'</font>';