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

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 18 Aug 2004 20:48:45 -0000


albertel		Wed Aug 18 16:48:45 2004 EDT

  Modified files:              
    /loncom/xml	scripttag.pm 
  Log:
  - BUG#3332
  
  
Index: loncom/xml/scripttag.pm
diff -u loncom/xml/scripttag.pm:1.114 loncom/xml/scripttag.pm:1.115
--- loncom/xml/scripttag.pm:1.114	Tue Aug 10 15:22:32 2004
+++ loncom/xml/scripttag.pm	Wed Aug 18 16:48:45 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # <script> definiton
 #
-# $Id: scripttag.pm,v 1.114 2004/08/10 19:22:32 albertel Exp $
+# $Id: scripttag.pm,v 1.115 2004/08/18 20:48:45 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -138,7 +138,7 @@
     }
   } else {
       my $bodytext=&Apache::lonxml::get_all_text_unbalanced("/script",$parser);
-      if ($target ne "meta") {
+      if ($target ne "meta" && $target ne 'tex') {
 	  $result = $token->[4];
 	  $result.=$bodytext;
       }
@@ -152,7 +152,7 @@
   my $type = &Apache::lonxml::get_param('type',$parstack,$safeeval);
   my $result='';
   #other script blocks need to survive
-  if ($type ne "loncapa/perl") {
+  if ($type ne "loncapa/perl" && $target ne 'tex') {
     return $token->[2];
   } elsif ($target eq 'edit' ) {
     return &Apache::edit::end_table();