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

sakharuk lon-capa-cvs@mail.lon-capa.org
Mon, 13 Jan 2003 21:24:39 -0000


sakharuk		Mon Jan 13 16:24:39 2003 EDT

  Modified files:              
    /loncom/homework	optionresponse.pm 
  Log:
  Small changes to print exams (mainly cosmetic).
  
  
Index: loncom/homework/optionresponse.pm
diff -u loncom/homework/optionresponse.pm:1.65 loncom/homework/optionresponse.pm:1.66
--- loncom/homework/optionresponse.pm:1.65	Mon Dec  2 12:06:08 2002
+++ loncom/homework/optionresponse.pm	Mon Jan 13 16:24:39 2003
@@ -1,7 +1,7 @@
 # LearningOnline Network with CAPA
 # option list style responses
 #
-# $Id: optionresponse.pm,v 1.65 2002/12/02 17:06:08 albertel Exp $
+# $Id: optionresponse.pm,v 1.66 2003/01/13 21:24:39 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -413,6 +413,7 @@
 	      }
 	      if ($Apache::lonhomework::type eq 'exam') {
 		  $result.=&bubbles(\@alphabet,\@opt);
+		  $result.='\vskip 2 mm ';
 	      }
 	      $displayoptionintex=1;
 	  } else {
@@ -433,6 +434,7 @@
 	      }
 	      if ($Apache::lonhomework::type eq 'exam') {
 		  $result.=&bubbles(\@alphabet,\@opt);
+		  $result.='\vskip 2 mm ';
 	      }
 	  }
       }
@@ -457,6 +459,7 @@
     $texoptionlist =~ s/>/\$>\$/g;
     $texoptionlist =~ s/</\$<\$/g;
     $texoptionlist =~ s/=/\$=\$/g;
+    $texoptionlist =~ s/\^(\d+)/<m>\$$1\$<\/m>/g;
     return $texoptionlist;
 }