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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 27 Aug 2002 02:25:11 -0000


albertel		Mon Aug 26 22:25:11 2002 EDT

  Modified files:              
    /loncom/homework/caparesponse	caparesponse.pm 
  Log:
  - put it in math mode to allow ^ to work properly
  
  
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.53 loncom/homework/caparesponse/caparesponse.pm:1.54
--- loncom/homework/caparesponse/caparesponse.pm:1.53	Mon Aug 26 15:44:33 2002
+++ loncom/homework/caparesponse/caparesponse.pm	Mon Aug 26 22:25:11 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # caparesponse definition
 #
-# $Id: caparesponse.pm,v 1.53 2002/08/26 19:44:33 sakharuk Exp $
+# $Id: caparesponse.pm,v 1.54 2002/08/27 02:25:11 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -188,10 +188,10 @@
 	}
       }
       chop $result;
-     if ($target eq 'web') {
-	 $result.=" $unit.<br></br>";
+      if ($target eq 'web') {
+	$result.=" $unit.<br></br>";
       } elsif ($target eq 'tex') {
-	  $result.=" $unit.\\vskip 0 mm ";
+	$result.="\$ $unit \$.\\vskip 0 mm ";
       }
     }
   } elsif ($target eq 'edit') {