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

sakharuk lon-capa-cvs@mail.lon-capa.org
Tue, 06 Jan 2004 20:37:29 -0000


sakharuk		Tue Jan  6 15:37:29 2004 EDT

  Modified files:              
    /loncom/homework	optionresponse.pm 
  Log:
   Bug 2547 (option response choices: m/s^2 breaks printing) is fixed.
  
  
Index: loncom/homework/optionresponse.pm
diff -u loncom/homework/optionresponse.pm:1.96 loncom/homework/optionresponse.pm:1.97
--- loncom/homework/optionresponse.pm:1.96	Sat Nov 15 01:28:02 2003
+++ loncom/homework/optionresponse.pm	Tue Jan  6 15:37:29 2004
@@ -1,7 +1,7 @@
 # LearningOnline Network with CAPA
 # option list style responses
 #
-# $Id: optionresponse.pm,v 1.96 2003/11/15 06:28:02 albertel Exp $
+# $Id: optionresponse.pm,v 1.97 2004/01/06 20:37:29 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -445,7 +445,7 @@
 	$texoptionlist =~ s/>/\$>\$/g;
 	$texoptionlist =~ s/</\$<\$/g;
 	$texoptionlist =~ s/=/\$=\$/g;
-	$texoptionlist =~ s/\^(\d+)/<m>\$$1\$<\/m>/g;
+	$texoptionlist =~ s/\^(\d+)/\$^{$1}\$/g;
     } else {
 	$texoptionlist =~ s/<option><\/option>/\\item \[\] \\vskip -5 mm/;
     }