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

sakharuk lon-capa-cvs@mail.lon-capa.org
Thu, 27 Mar 2003 14:58:56 -0000


sakharuk		Thu Mar 27 09:58:56 2003 EDT

  Modified files:              
    /loncom/homework	optionresponse.pm 
  Log:
  Corrected printing for problem mode partly destroed yesterday when I was in hurry doing exam mode for Ed. 
  
  
Index: loncom/homework/optionresponse.pm
diff -u loncom/homework/optionresponse.pm:1.70 loncom/homework/optionresponse.pm:1.71
--- loncom/homework/optionresponse.pm:1.70	Wed Mar 26 17:59:09 2003
+++ loncom/homework/optionresponse.pm	Thu Mar 27 09:58:56 2003
@@ -1,7 +1,7 @@
 # LearningOnline Network with CAPA
 # option list style responses
 #
-# $Id: optionresponse.pm,v 1.70 2003/03/26 22:59:09 albertel Exp $
+# $Id: optionresponse.pm,v 1.71 2003/03/27 14:58:56 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -634,7 +634,7 @@
 	if ($target eq 'tex' and $Apache::lonhomework::type eq 'exam') {
 	    $Apache::response::conceptgroup{"$name.text"} = '\vskip 4 mm $\triangleright$ '.$text;
 	} else {
-	    if ($target eq 'tex') {
+	    if ($target eq 'tex' and $Apache::lonhomework::type eq 'exam') {
 		$Apache::response::conceptgroup{"$name.text"} = ' $\triangleright$ '.$text;
 	    } else {
 		$Apache::response::conceptgroup{"$name.text"} = $text;
@@ -647,7 +647,7 @@
 	if ($Apache::lonhomework::type eq 'exam') {
 	    $Apache::response::foilgroup{"$name.text"} = '\vskip 5 mm $\triangleright$ '.$text;
 	} else {
-	    if ($target eq 'tex') {
+	    if ($target eq 'tex' and $Apache::lonhomework::type eq 'exam') {
 		$Apache::response::foilgroup{"$name.text"} = ' $\triangleright$ '.$text;
 	    } else {
 		$Apache::response::foilgroup{"$name.text"} = $text;