--- loncom/xml/scripttag.pm 2011/12/10 18:11:05 1.159 +++ loncom/xml/scripttag.pm 2013/10/01 00:52:58 1.169 @@ -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");