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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 23 Jan 2007 02:14:19 -0000


albertel		Mon Jan 22 21:14:19 2007 EDT

  Modified files:              
    /loncom/interface/spreadsheet	Spreadsheet.pm 
  Log:
  - tabination
  
  
Index: loncom/interface/spreadsheet/Spreadsheet.pm
diff -u loncom/interface/spreadsheet/Spreadsheet.pm:1.75 loncom/interface/spreadsheet/Spreadsheet.pm:1.76
--- loncom/interface/spreadsheet/Spreadsheet.pm:1.75	Mon Jan 22 20:48:16 2007
+++ loncom/interface/spreadsheet/Spreadsheet.pm	Mon Jan 22 21:14:18 2007
@@ -1,5 +1,5 @@
 #
-# $Id: Spreadsheet.pm,v 1.75 2007/01/23 01:48:16 albertel Exp $
+# $Id: Spreadsheet.pm,v 1.76 2007/01/23 02:14:18 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -828,12 +828,12 @@
 	foreach my $varname ( @vars ) {
             if ($varname=~/^(parameter|stores|timestamp)/) {
                 $formula=~s/$varname/'$c{\''.$varname.'\'}'/ge;
-               $varname=~s/$var/\([\\w:\\- ]\+\)/g;
-	       foreach (keys(%{$self->{'constants'}})) {
-		  if ($_=~/$varname/) {
-		      $values{$1}=1;
-                  }
-               }
+		$varname=~s/$var/\([\\w:\\- ]\+\)/g;
+		foreach (keys(%{$self->{'constants'}})) {
+		    if ($_=~/$varname/) {
+			$values{$1}=1;
+		    }
+		}
 	    }
         }
         if ($func eq 'EXPANDSUM') {