--- loncom/homework/essayresponse.pm 2006/10/17 15:11:11 1.77 +++ loncom/homework/essayresponse.pm 2006/10/17 17:09:44 1.78 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # essay (ungraded) style responses # -# $Id: essayresponse.pm,v 1.77 2006/10/17 15:11:11 albertel Exp $ +# $Id: essayresponse.pm,v 1.78 2006/10/17 17:09:44 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -170,18 +170,11 @@ sub end_essayresponse { $result .= &Apache::inputtags::exam_score_line($target); } elsif ($target eq 'answer') { - if ($env{'form.answer_output_mode'} eq 'tex') { - $result .= '\begin{tabular}{|l|}'; - $result .= '\hline'; - $result .= ' Answer for essay will be hand graded \\\\ '; - $result .= '\\hline'; - $result .= '\end{tabular}'; - $result .= '\vskip 3mm'; - } else { - $result.=&Apache::response::answer_header($$tagstack[-1]); - $result.=&Apache::response::answer_part($$tagstack[-1],''); - $result.=&Apache::response::answer_footer($$tagstack[-1]); - } + $result.=&Apache::response::answer_header($$tagstack[-1]); + my $answer = &mt('Answer for essay will be hand graded.'); + $result.=&Apache::response::answer_part($$tagstack[-1],$answer, + {'no_verbatim' => 1}); + $result.=&Apache::response::answer_footer($$tagstack[-1]); } if ($target eq 'grade' || $target eq 'web' || $target eq 'answer' ||