';
+ $result=&Apache::loncommon::start_togglebox($id,$heading,$headerbg,$hidetext,$showtext);
} elsif ($target eq 'tex') {
my $heading=&Apache::lonxml::get_param('heading',$parstack,$safeeval);
unless ($heading) { $heading=''; } else { $heading.=' '; }
@@ -371,7 +560,7 @@ sub end_togglebox {
my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_;
my $result;
if ($target eq 'web' || $target eq 'webgrade') {
- $result=' |
'.&Apache::loncommon::end_data_table();
+ $result=&Apache::loncommon::end_togglebox();
} elsif ($target eq 'tex') {
$result = "}\n\n";
} else {