--- loncom/homework/matchresponse.pm 2014/05/05 17:40:54 1.91 +++ loncom/homework/matchresponse.pm 2025/02/21 20:55:17 1.97 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Full matching style response # -# $Id: matchresponse.pm,v 1.91 2014/05/05 17:40:54 bisitz Exp $ +# $Id: matchresponse.pm,v 1.97 2025/02/21 20:55:17 raeburn 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). - '
'.$label.' | '.$item.' | '; + $table.= ''.$label.' | '.$item.' | '; if ($columns > 1) { $table .= ''; } @@ -319,7 +318,8 @@ sub start_foilgroup { &Apache::response::pushrandomnumber(undef,$target); if ($target eq 'edit') { $result.=&Apache::edit::start_table($token) - .' |
---|---|---|---|---|
'.&mt('Collection Of Foils').' | ' + .'||||
'.&Apache::loncommon::insert_folding_button() + .&mt('Collection Of Foils').' | ' .''.&mt('Delete?') .&Apache::edit::deletelist($target,$token) .' | ' @@ -684,7 +684,7 @@ sub displayfoils { my $last_letter=$name_letter_map{$lastopt}; my $optionlist = ''; if ($target ne 'tex') { - $optionlist="\n"; + $optionlist="\n"; } else { if ($Apache::lonhomework::type ne 'exam') { if($env{'form.pdfFormFields'} eq 'yes' @@ -701,7 +701,7 @@ sub displayfoils { foreach $option (@used_letters) { if ($option eq $last_letter) { if ($target ne 'tex') { - $optionlist.="\n"; + $optionlist.="\n"; } elsif ($target eq 'tex' && $env{'form.pdfFormFields'} eq 'yes' && $Apache::inputtags::status['-1'] eq 'CAN_ANSWER' && $Apache::lonhomework::type ne 'exam') { @@ -709,7 +709,7 @@ sub displayfoils { } } else { if ($target ne 'tex') { - $optionlist.="\n"; + $optionlist.="\n"; } elsif ($target eq 'tex' && $env{'form.pdfFormFields'} eq 'yes' && $Apache::inputtags::status['-1'] eq 'CAN_ANSWER' && $Apache::lonhomework::type ne 'exam') { @@ -718,7 +718,7 @@ sub displayfoils { } } if ($target ne 'tex' && $Apache::lonhomework::type ne 'exam') { - $optionlist='\n"; @@ -745,7 +745,7 @@ sub displayfoils { } if ($target ne 'tex') { if ($Apache::lonhomework::type ne 'exam') { - $question.="