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

sakharuk lon-capa-cvs@mail.lon-capa.org
Mon, 05 Aug 2002 18:24:05 -0000


sakharuk		Mon Aug  5 14:24:05 2002 EDT

  Modified files:              
    /loncom/homework	radiobuttonresponse.pm 
  Log:
  Corrections to show the answer.
  
  
Index: loncom/homework/radiobuttonresponse.pm
diff -u loncom/homework/radiobuttonresponse.pm:1.45 loncom/homework/radiobuttonresponse.pm:1.46
--- loncom/homework/radiobuttonresponse.pm:1.45	Mon Aug  5 11:55:21 2002
+++ loncom/homework/radiobuttonresponse.pm	Mon Aug  5 14:24:05 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # mutliple choice style responses
 #
-# $Id: radiobuttonresponse.pm,v 1.45 2002/08/05 15:55:21 albertel Exp $
+# $Id: radiobuttonresponse.pm,v 1.46 2002/08/05 18:24:05 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -261,16 +261,20 @@
       if ($target ne 'tex') {
 	  $result.="<br />";
       } else {
-	  $result.='\vskip 0 mm ';
+	  $result.='\vskip 0 mm \item ';
       }
       if ($Apache::response::foilgroup{$name.'.value'} eq 'true') { 
-	$result.='Correct:<b>';
+	  if ($target ne 'tex') { $result.='Correct:<b>'; } else { $result.='Correct: ';}
       } else {
 	$result.='Incorrect:';
       }
-      $result.=$Apache::response::foilgroup{$name.'.text'}."</input>\n";
+      if ($target ne 'tex') {
+	  $result.=$Apache::response::foilgroup{$name.'.text'}."</input>\n";
+      } else {
+	  $result.=$Apache::response::foilgroup{$name.'.text'};
+      }
       if ($Apache::response::foilgroup{$name.'.value'} eq 'true') {
-	$result.='</b>';
+	  if ($target ne 'tex') { $result.='</b>';}
       }
     }
   } else {