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

sakharuk lon-capa-cvs@mail.lon-capa.org
Thu, 24 Jul 2003 13:25:37 -0000


sakharuk		Thu Jul 24 09:25:37 2003 EDT

  Modified files:              
    /loncom/homework/caparesponse	caparesponse.pm 
  Log:
  Changed the way how answers appear on the paper - removed \textit{} in significant digits and \verb|| in units - there is the same command in response.pm which is more general and allows to print correctly the answers not only for numerical but for strings eather.
  
  
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.105 loncom/homework/caparesponse/caparesponse.pm:1.106
--- loncom/homework/caparesponse/caparesponse.pm:1.105	Tue Jun 24 16:41:56 2003
+++ loncom/homework/caparesponse/caparesponse.pm	Thu Jul 24 09:25:37 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # caparesponse definition
 #
-# $Id: caparesponse.pm,v 1.105 2003/06/24 20:41:56 albertel Exp $
+# $Id: caparesponse.pm,v 1.106 2003/07/24 13:25:37 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -324,7 +324,7 @@
 		if ($high && $$tagstack[-1] eq 'numericalresponse') { $ans.=' ['.$low.','.$high.']'; }
 		if ($sighigh && $$tagstack[-1] eq 'numericalresponse') {
 		    if ($ENV{'form.answer_output_mode'} eq 'tex') {
-			$ans.= " Sig \\textit{$siglow - $sighigh}";
+			$ans.= " Sig $siglow - $sighigh";
 		    } else {
 			$ans.= " Sig <i>$siglow - $sighigh</i>";
 		    }
@@ -343,7 +343,7 @@
 	    if ($target eq 'answer') {
 		if ($ENV{'form.answer_output_mode'} eq 'tex') {
 		    $result.=&Apache::response::answer_part($$tagstack[-1],
-							    "Unit: \\verb|$unit|");
+							    " Unit: $unit ");
 		} else {
 		    $result.=&Apache::response::answer_part($$tagstack[-1],
 							    "Unit: <b>$unit</b>");