Browse Source

maintenance: Whitespace errors

Aldo 11 years ago
parent
commit
bf26a46891
6 changed files with 10 additions and 10 deletions
  1. 2
    2
      bin/autotest.pl
  2. 1
    1
      bin/mksheet.pl
  3. 2
    2
      bin/timestamp.pl
  4. 2
    2
      cgi-bin/htlog/htlog.cgi
  5. 1
    1
      lib/helper.pm
  6. 2
    2
      lib/htsheet.pm

+ 2
- 2
bin/autotest.pl View File

@@ -70,8 +70,8 @@ sub run_tests {
70 70
     printf "===== STDOUT =====\n";
71 71
     foreach (@_) {
72 72
         my $name = File::Spec->splitpath( $_ );
73
-        say "$name:"; 
74
-        $cmd = sprintf 'perl %s 2>%s', 
73
+        say "$name:";
74
+        $cmd = sprintf 'perl %s 2>%s',
75 75
                         File::Spec->catdir( $TESTS, $name ),
76 76
                         File::Spec->catdir( $DUMPS, $name . '.err' );
77 77
         system($cmd);

+ 1
- 1
bin/mksheet.pl View File

@@ -64,7 +64,7 @@ TAG: foreach my $tag (@tags) {
64 64
     print "  $tag...";
65 65
 
66 66
     my $t = $s->grep($tag);
67
-    
67
+
68 68
     my @subsets_to_go = guess_subsets($tag)
69 69
         or warn "no subsets available for tag $tag\n";
70 70
 

+ 2
- 2
bin/timestamp.pl View File

@@ -24,8 +24,8 @@ use POSIX qw|modf|;
24 24
 sub stamp {
25 25
     my $time = shift;
26 26
     my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = (localtime($time));
27
-    return sprintf "%04i-%02i-%02i %02i:%02i:%02i.%05i", 
28
-                    $year + 1900,   $mon + 1,   $mday,  
27
+    return sprintf "%04i-%02i-%02i %02i:%02i:%02i.%05i",
28
+                    $year + 1900,   $mon + 1,   $mday,
29 29
                     $hour,          $min,       $sec,     ( modf $time)[0] * 100000;
30 30
 }
31 31
 

+ 2
- 2
cgi-bin/htlog/htlog.cgi View File

@@ -25,8 +25,8 @@ sub stamp {
25 25
     my $unixtime = ($_[0] ? $_[0] : time );
26 26
     my ($sec, $min, $hour, $mday, $mon, $year) = localtime $unixtime;
27 27
     return sprintf (
28
-        "%04i-%02i-%02i %02i:%02i:%02i", 
29
-        $year + 1900,   $mon + 1,   $mday,  
28
+        "%04i-%02i-%02i %02i:%02i:%02i",
29
+        $year + 1900,   $mon + 1,   $mday,
30 30
         $hour,          $min,       $sec
31 31
     );
32 32
 }

+ 1
- 1
lib/helper.pm View File

@@ -19,7 +19,7 @@ package helper;
19 19
 use Carp;
20 20
 use YAML;
21 21
 use Data::Dumper;
22
-    
22
+
23 23
 ###
24 24
 # `find . -type f` plus a Windows version. And a front-end
25 25
 our $PLATFORM;

+ 2
- 2
lib/htsheet.pm View File

@@ -85,7 +85,7 @@ sub parse_message {
85 85
     #TODO: Make them global
86 86
     my $DIV_FIELD =";";
87 87
     my $DIV_VALUE ="=";
88
-    
88
+
89 89
     # split to fields
90 90
     my @fields  = split $DIV_FIELD, $message;
91 91
     %$data      = map {
@@ -163,7 +163,7 @@ sub get_unique_values_of {
163 163
     my %values;
164 164
     $values{$_->{$column}}++
165 165
         foreach @{ $self->{data}->{rows} };
166
-   
166
+
167 167
     return [ keys %values ];
168 168
 }
169 169