--- loncom/homework/matchresponse.pm 2014/02/27 14:41:34 1.90 +++ loncom/homework/matchresponse.pm 2016/01/22 22:42:51 1.93 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Full matching style response # -# $Id: matchresponse.pm,v 1.90 2014/02/27 14:41:34 bisitz Exp $ +# $Id: matchresponse.pm,v 1.93 2016/01/22 22:42:51 damieng Exp $ # # Copyright Michigan State University Board of Trustees # @@ -55,7 +55,7 @@ sub start_matchresponse { $result=&Apache::response::meta_package_write('matchresponse'); } elsif ($target eq 'edit' ) { $result.=&Apache::edit::start_table($token). - ''.&Apache::lonxml::description($token).'' + ''.&Apache::loncommon::insert_folding_button().&Apache::lonxml::description($token).'' .''.&mt('Delete?').' ' .&Apache::edit::deletelist($target,$token) .'' @@ -171,7 +171,7 @@ sub end_itemgroup { } if ($target eq 'web') { - my $table='
'; # extra space to match what latex does. + my $table='
'; # extra space to match what latex does. if ((!$columns) || ($columns < 0)) { if ($direction eq 'horizontal') { if (@names > 0) { @@ -319,7 +319,8 @@ sub start_foilgroup { &Apache::response::pushrandomnumber(undef,$target); if ($target eq 'edit') { $result.=&Apache::edit::start_table($token) - .'' + .'' .'' @@ -581,6 +582,9 @@ sub format_prior_answer { foreach my $name (@{ $foil_order }) { my $item = &HTML::Entities::encode(shift(@items),'<>&"'); + if ($item eq '') { + $item = ' '; + } $output .= ''; } return if (!defined($output));
'.&mt('Collection Of Foils').'
'.&Apache::loncommon::insert_folding_button() + .&mt('Collection Of Foils').''.&mt('Delete?') .&Apache::edit::deletelist($target,$token) .'
'.$item.'