--- loncom/xml/scripttag.pm 2011/12/09 22:04:55 1.158 +++ loncom/xml/scripttag.pm 2011/12/23 19:38:01 1.164 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # $linktext"; + return $result; +} + +sub end_togglebox { + my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; + my $result; + if ($target eq 'web' || $target eq 'webgrade') { + $result=&Apache::loncommon::end_togglebox(); } elsif ($target eq 'tex') { - $result = '}'; + $result = "}\n\n"; } else { $result = ''; } - return $result; + return $result; } + + sub start_import { my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; my $bodytext=$$parser[$#$parser]->get_text("/import");