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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 07 Mar 2003 23:32:06 -0000


albertel		Fri Mar  7 18:32:06 2003 EDT

  Modified files:              
    /loncom/interface	lonspreadsheet.pm 
  Log:
  - spaces seem to work wel in part numbers, I need to do more testing of it, but it looks good so far
  
  
Index: loncom/interface/lonspreadsheet.pm
diff -u loncom/interface/lonspreadsheet.pm:1.174 loncom/interface/lonspreadsheet.pm:1.175
--- loncom/interface/lonspreadsheet.pm:1.174	Thu Mar  6 23:20:20 2003
+++ loncom/interface/lonspreadsheet.pm	Fri Mar  7 18:32:05 2003
@@ -1,5 +1,5 @@
 #
-# $Id: lonspreadsheet.pm,v 1.174 2003/03/07 04:20:20 albertel Exp $
+# $Id: lonspreadsheet.pm,v 1.175 2003/03/07 23:32:05 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1526,7 +1526,7 @@
 	foreach my $varname ( @vars ) {
             if ($varname=~/\D/) {
                $formula=~s/$varname/'$c{\''.$varname.'\'}'/ge;
-               $varname=~s/$var/\([\\w:-]\+\)/g;
+               $varname=~s/$var/\([\\w:- ]\+\)/g;
 	       foreach (keys(%{$self->{'constants'}})) {
 		  if ($_=~/$varname/) {
 		      $values{$1}=1;