[LON-CAPA-cvs] cvs: loncom /homework response.pm

sakharuk lon-capa-cvs@mail.lon-capa.org
Mon, 14 Jul 2003 18:41:40 -0000


sakharuk		Mon Jul 14 14:41:40 2003 EDT

  Modified files:              
    /loncom/homework	response.pm 
  Log:
  Bug 1848 is fixed. Now it's possible to print answers in the same way as they appear in the problem body.
  
  
Index: loncom/homework/response.pm
diff -u loncom/homework/response.pm:1.80 loncom/homework/response.pm:1.81
--- loncom/homework/response.pm:1.80	Mon Jun 23 16:57:41 2003
+++ loncom/homework/response.pm	Mon Jul 14 14:41:40 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # various response type definitons response definition
 #
-# $Id: response.pm,v 1.80 2003/06/23 20:57:41 albertel Exp $
+# $Id: response.pm,v 1.81 2003/07/14 18:41:40 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -378,7 +378,7 @@
     my ($type,$answer) = @_;
     my $result;
     if ($ENV{'form.answer_output_mode'} eq 'tex') {
-	$result = ' '.$answer.'\\\\ \hline ';
+	$result = ' \verb|'.$answer.'|\\\\ \hline ';
     } else {
 	$result = '<td>'.$answer.'</td>';
     }