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

sakharuk lon-capa-cvs@mail.lon-capa.org
Tue, 27 May 2003 13:56:21 -0000


sakharuk		Tue May 27 09:56:21 2003 EDT

  Modified files:              
    /loncom/homework	optionresponse.pm 
  Log:
  Bug 1466 (optionresponse in .exam shows tex in web mode) is fixed.
  
  
Index: loncom/homework/optionresponse.pm
diff -u loncom/homework/optionresponse.pm:1.77 loncom/homework/optionresponse.pm:1.78
--- loncom/homework/optionresponse.pm:1.77	Fri May 16 16:16:18 2003
+++ loncom/homework/optionresponse.pm	Tue May 27 09:56:21 2003
@@ -1,7 +1,7 @@
 # LearningOnline Network with CAPA
 # option list style responses
 #
-# $Id: optionresponse.pm,v 1.77 2003/05/16 20:16:18 albertel Exp $
+# $Id: optionresponse.pm,v 1.78 2003/05/27 13:56:21 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -395,6 +395,7 @@
 	      }
 	      if ($Apache::lonhomework::type eq 'exam') {
 		  $result.='\vskip -2 mm\parbox{\textwidth}{\begin{enumerate}\item[\textbf{'.$Apache::lonxml::counter.'}.]\parbox{\textwidth - 5 mm}{'.&bubbles(\@alphabet,\@opt).'}\end{enumerate}} \vskip -9 mm \strut ';
+#		  $Apache::lonxml::counter++;
 	      }
 	      $displayoptionintex=1;
 	  } else {
@@ -415,6 +416,7 @@
 	      }
 	      if ($Apache::lonhomework::type eq 'exam') {
 		  $result.='\vskip -2 mm \parbox{\textwidth}{\begin{enumerate}\item[\textbf{'.$Apache::lonxml::counter.'}.]\parbox{\textwidth - 5 mm}{'.&bubbles(\@alphabet,\@opt).'}\end{enumerate}} \vskip -9 mm \strut ';
+#		  $Apache::lonxml::counter++;
 	      }
 	  }
       }
@@ -623,7 +625,7 @@
       } else {
 	push @{ $Apache::response::foilgroup{'names'} }, $name;
 	$Apache::response::foilgroup{"$name.value"} = $value;
-	if ($Apache::lonhomework::type eq 'exam') {
+	if ($target eq 'tex' and $Apache::lonhomework::type eq 'exam') {
 	    $Apache::response::foilgroup{"$name.text"} = '\vskip 5 mm $\triangleright$ '.$text;
 	} else {
 	    if ($target eq 'tex' and $Apache::lonhomework::type eq 'exam') {