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

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 23 Jun 2003 20:57:41 -0000


albertel		Mon Jun 23 16:57:41 2003 EDT

  Modified files:              
    /loncom/homework	response.pm 
  Log:
  - BUG#1872, now more consistant
  
  
Index: loncom/homework/response.pm
diff -u loncom/homework/response.pm:1.79 loncom/homework/response.pm:1.80
--- loncom/homework/response.pm:1.79	Fri May 23 15:37:33 2003
+++ loncom/homework/response.pm	Mon Jun 23 16:57:41 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # various response type definitons response definition
 #
-# $Id: response.pm,v 1.79 2003/05/23 19:37:33 albertel Exp $
+# $Id: response.pm,v 1.80 2003/06/23 20:57:41 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -368,13 +368,8 @@
 	$result = ' \vskip 0 mm \begin{tabular}{|c|}\hline Answer for Part: '.
                   $Apache::inputtags::part.' \\\\ \hline ';
     } else {
-	if ($type eq 'optionresponse' || $type eq 'radiobuttonresponse' ) {
-	    $result = '<table border="1"><tr><th>Answer for Part:'.
-		$Apache::inputtags::part. '</th></tr><tr>'."\n";
-	} else {
-	    $result = '<table border="1"><tr><td>Answer for Part:'.
-		$Apache::inputtags::part. '</td>'."\n";
-	}
+	$result = '<table border="1"><tr><td>Answer for Part:'.
+	    $Apache::inputtags::part. '</td>'."\n";
     }
     return $result;
 }
@@ -385,11 +380,7 @@
     if ($ENV{'form.answer_output_mode'} eq 'tex') {
 	$result = ' '.$answer.'\\\\ \hline ';
     } else {
-	if ($type eq 'optionresponse' || $type eq 'radiobuttonresponse') {
-	    $result = '<td>'.$answer.'</td>';
-	} else {
-	    $result = '<td>'.$answer.'</td>';
-	}
+	$result = '<td>'.$answer.'</td>';
     }
     return $result;
 }
@@ -400,11 +391,7 @@
     if ($ENV{'form.answer_output_mode'} eq 'tex') {
 	$result = ' \end{tabular} \vskip 0 mm ';
     } else {
-	if ($type eq 'optionresponse' || $type eq 'radiobuttonresponse') {
-	    $result = '</tr></table>';
-	} else {
-	    $result = '</tr></table>';
-	}
+	$result = '</tr></table>';
     }
     return $result;
 }