--- loncom/homework/optionresponse.pm	2003/05/16 20:16:18	1.77
+++ loncom/homework/optionresponse.pm	2003/05/27 13:56:21	1.78
@@ -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 @@ sub displayfoils {
 	      }
 	      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 @@ sub displayfoils {
 	      }
 	      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 @@ sub end_foil {
       } 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') {