--- loncom/homework/response.pm 2008/03/06 16:28:20 1.188 +++ loncom/homework/response.pm 2008/04/05 15:39:17 1.189 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # various response type definitons response definition # -# $Id: response.pm,v 1.188 2008/03/06 16:28:20 www Exp $ +# $Id: response.pm,v 1.189 2008/04/05 15:39:17 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -790,8 +790,6 @@ sub next_answer { sub answer_part { my ($type,$answer,$args) = @_; - &Apache::lonxml::debug("In answerpart :$type:$answer:$args:"); - my $result; if ($env{'form.answer_output_mode'} eq 'tex') { if (!$args->{'no_verbatim'}) { @@ -803,12 +801,12 @@ sub answer_part { last; } } - my $answerelements=$answer; + my $fullanswer=$answer; $answer=''; - foreach my $element (split(/[\;\:]/,$answerelements)) { - if ($element ne '') { - $answer.= '\noindent\verb'.$to_use.$element.$to_use.'\newline'; - } + foreach my $element (split(/[\;]/,$fullanswer)) { + if ($element ne '') { + $answer.= '\verb'.$to_use.$element.$to_use.' \newline'; + } } } if ($answer ne '') { @@ -819,8 +817,7 @@ sub answer_part { $result .= '