version 1.114, 2004/08/10 19:22:32
|
version 1.117, 2004/09/28 20:40:05
|
Line 25
|
Line 25
|
# |
# |
# http://www.lon-capa.org/ |
# http://www.lon-capa.org/ |
# |
# |
# 2/21 Guy |
|
# 8/20 Gerd Kortemeyer |
|
|
|
package Apache::scripttag; |
package Apache::scripttag; |
|
|
Line 138 sub start_script {
|
Line 136 sub start_script {
|
} |
} |
} else { |
} else { |
my $bodytext=&Apache::lonxml::get_all_text_unbalanced("/script",$parser); |
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 = $token->[4]; |
$result.=$bodytext; |
$result.=$bodytext; |
} |
} |
Line 152 sub end_script {
|
Line 150 sub end_script {
|
my $type = &Apache::lonxml::get_param('type',$parstack,$safeeval); |
my $type = &Apache::lonxml::get_param('type',$parstack,$safeeval); |
my $result=''; |
my $result=''; |
#other script blocks need to survive |
#other script blocks need to survive |
if ($type ne "loncapa/perl") { |
if ($type ne "loncapa/perl" && $target ne 'tex') { |
return $token->[2]; |
return $token->[2]; |
} elsif ($target eq 'edit' ) { |
} elsif ($target eq 'edit' ) { |
return &Apache::edit::end_table(); |
return &Apache::edit::end_table(); |