--- loncom/homework/default_homework.lcpm 2008/03/05 15:31:57 1.126 +++ loncom/homework/default_homework.lcpm 2008/03/05 16:06:39 1.127 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # used by lonxml::xmlparse() as input variable $safeinit to Apache::run::run() # -# $Id: default_homework.lcpm,v 1.126 2008/03/05 15:31:57 www Exp $ +# $Id: default_homework.lcpm,v 1.127 2008/03/05 16:06:39 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -319,7 +319,8 @@ sub caparesponse_check_list { $unit=~s/\s//; if ($unit ne '') { foreach my $response (@$responses) { - foreach my $element (@$response) { + foreach my $element (@$response) { + $element =~ s/\s//g; $element .= " $unit"; } }