Answer for Part:'.
+ $Apache::inputtags::part. ' | '."\n";
+ }
+ return $result;
+}
+
+sub answer_part {
+ my ($type,$answer) = @_;
+ my $result;
+ if ($env{'form.answer_output_mode'} eq 'tex') {
+ my $to_use='|';
+ foreach my $value (32..126) {
+ my $char=pack('c',$value);
+ if ($answer !~ /\Q$char\E/) {
+ $to_use=$char;
+ last;
+ }
+ }
+ $result = '\verb'.$to_use.$answer.$to_use.'\\\\ \hline ';
+ } else {
+ $result = ''.$answer.' | ';
+ }
+ return $result;
+}
+
+sub answer_footer {
+ my ($type) = @_;
+ my $result;
+ if ($env{'form.answer_output_mode'} eq 'tex') {
+ $result = ' \end{tabular} \vskip 0 mm ';
+ } else {
+ $result = '