[LON-CAPA-cvs] cvs: loncom /xml scripttag.pm
albertel
lon-capa-cvs-allow@mail.lon-capa.org
Thu, 11 Oct 2007 00:24:47 -0000
albertel Wed Oct 10 20:24:47 2007 EDT
Modified files:
/loncom/xml scripttag.pm
Log:
- don't parse non loncapa/perl <script>s in answer mode
Index: loncom/xml/scripttag.pm
diff -u loncom/xml/scripttag.pm:1.143 loncom/xml/scripttag.pm:1.144
--- loncom/xml/scripttag.pm:1.143 Thu Aug 30 18:56:43 2007
+++ loncom/xml/scripttag.pm Wed Oct 10 20:24:46 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# <script> definiton
#
-# $Id: scripttag.pm,v 1.143 2007/08/30 22:56:43 albertel Exp $
+# $Id: scripttag.pm,v 1.144 2007/10/11 00:24:46 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -159,7 +159,7 @@
}
} else {
my $bodytext=&Apache::lonxml::get_all_text_unbalanced("/script",$parser);
- if ($target ne "meta" && $target ne 'tex') {
+ if ($target ne "meta" && $target ne 'tex' && $target ne 'answer') {
$result = $token->[4];
$result.=$bodytext;
}
@@ -404,7 +404,7 @@
push(@Apache::inputtags::import,$id);
push(@Apache::inputtags::importlist,$id);
- &Apache::lonxml::newparser($parser,\$file,$dir);
+ &Apache::lonxml::newparser($parser,\$file,$dir);
} elsif ($target eq "edit" ) {
$result.=&Apache::edit::tag_start($target,$token);