--- loncom/homework/matchresponse.pm 2003/03/26 22:59:09 1.16 +++ loncom/homework/matchresponse.pm 2003/05/06 22:08:28 1.17 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Full matching style response # -# $Id: matchresponse.pm,v 1.16 2003/03/26 22:59:09 albertel Exp $ +# $Id: matchresponse.pm,v 1.17 2003/05/06 22:08:28 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -113,6 +113,7 @@ sub end_itemgroup { my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; my $result; + if ($target eq 'edit') { $result=&Apache::edit::end_table(); } if (!defined(@{ $Apache::response::itemgroup{'names'} })) { return; } my @names=@{ $Apache::response::itemgroup{'names'} }; my $randomize =&Apache::lonxml::get_param('randomize',$parstack,$safeeval); @@ -154,7 +155,7 @@ sub end_itemgroup { } $table.=' \end{tabular} \\\\ '; $Apache::matchresponse::itemtable{'display'}=$table; - } elsif ($target eq 'edit') { $result=&Apache::edit::end_table(); } + } return $result; }