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

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 27 Feb 2006 19:36:21 -0000


albertel		Mon Feb 27 14:36:21 2006 EDT

  Modified files:              
    /loncom/interface/spreadsheet	Spreadsheet.pm 
  Log:
  - style police
  
  
Index: loncom/interface/spreadsheet/Spreadsheet.pm
diff -u loncom/interface/spreadsheet/Spreadsheet.pm:1.62 loncom/interface/spreadsheet/Spreadsheet.pm:1.63
--- loncom/interface/spreadsheet/Spreadsheet.pm:1.62	Sun Feb 26 19:56:47 2006
+++ loncom/interface/spreadsheet/Spreadsheet.pm	Mon Feb 27 14:36:20 2006
@@ -1,5 +1,5 @@
 #
-# $Id: Spreadsheet.pm,v 1.62 2006/02/27 00:56:47 bowersj2 Exp $
+# $Id: Spreadsheet.pm,v 1.63 2006/02/27 19:36:20 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1290,15 +1290,13 @@
     }
     $name    = '' if (! defined($name));
     $formula = '' if (! defined($formula));
-    if ($showsource)
-    {
+    if ($showsource) {
         if (!defined($formula) || $formula =~ /^\s*$/) {
             $value = '<font color="'.$bgcolor.'">#</font>';
         } else {
             $value = &HTML::Entities::encode($formula, '<>&"');
         }
-    }
-    elsif (! defined($value)) {
+    } elsif (! defined($value)) {
         $value = '<font color="'.$bgcolor.'">#</font>';
         if ($formula ne '') {
             $value = '<i>undefined value</i>';