[LON-CAPA-cvs] cvs: loncom /interface lonspreadsheet.pm

matthew lon-capa-cvs@mail.lon-capa.org
Mon, 09 Dec 2002 14:50:12 -0000


matthew		Mon Dec  9 09:50:12 2002 EDT

  Modified files:              
    /loncom/interface	lonspreadsheet.pm 
  Log:
  Stop automatic translation of ' to " on submissions.  This at least allows
  the user to enter single quotes, even if they still get turned to " if they
  attempt to edit them :(
  
  
Index: loncom/interface/lonspreadsheet.pm
diff -u loncom/interface/lonspreadsheet.pm:1.155 loncom/interface/lonspreadsheet.pm:1.156
--- loncom/interface/lonspreadsheet.pm:1.155	Thu Dec  5 10:31:05 2002
+++ loncom/interface/lonspreadsheet.pm	Mon Dec  9 09:50:11 2002
@@ -1,5 +1,5 @@
 #
-# $Id: lonspreadsheet.pm,v 1.155 2002/12/05 15:31:05 matthew Exp $
+# $Id: lonspreadsheet.pm,v 1.156 2002/12/09 14:50:11 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3129,7 +3129,7 @@
     # If a new formula had been entered, go from work copy
     if ($ENV{'form.unewfield'}) {
         $r->print('<h2>Modified Workcopy</h2>');
-        $ENV{'form.unewformula'}=~s/\'/\"/g;
+        #$ENV{'form.unewformula'}=~s/\'/\"/g;
         $r->print('<p>Cell '.$ENV{'form.unewfield'}.' = <pre>');
         $r->print(&HTML::Entities::encode($ENV{'form.unewformula'}).
                   '</pre></p>');