--- loncom/homework/matchresponse.pm 2003/09/22 20:49:01 1.23 +++ loncom/homework/matchresponse.pm 2003/09/24 18:14:30 1.24 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Full matching style response # -# $Id: matchresponse.pm,v 1.23 2003/09/22 20:49:01 albertel Exp $ +# $Id: matchresponse.pm,v 1.24 2003/09/24 18:14:30 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -369,7 +369,7 @@ sub displayfoils { %name_letter_map= %{ $Apache::response::itemgroup{'name_letter_map'} }; } - if ( &Apache::response::show_answer() ) { + if ((($solved =~ /^correct/) || ($status eq 'SHOW_ANSWER')) && ($target ne 'tex')) { foreach my $name (@whichfoils) { my $text=$Apache::response::foilgroup{$name.'.text'}; my $value=$Apache::response::foilgroup{$name.'.value'}; @@ -590,7 +590,7 @@ sub end_foil { } } else { if ($target eq 'tex') { - $Apache::response::foilgroup{"$name.text"} = ' $\triangleright$ '.$text; + $Apache::response::foilgroup{"$name.text"} = $text; } else { $Apache::response::foilgroup{"$name.text"} = $text; }