Explorar el Código

maintenance: Whitespace errors

Aldo hace 11 años
padre
commit
bf26a46891
Se han modificado 6 ficheros con 10 adiciones y 10 borrados
  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 Ver fichero

70
     printf "===== STDOUT =====\n";
70
     printf "===== STDOUT =====\n";
71
     foreach (@_) {
71
     foreach (@_) {
72
         my $name = File::Spec->splitpath( $_ );
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
                         File::Spec->catdir( $TESTS, $name ),
75
                         File::Spec->catdir( $TESTS, $name ),
76
                         File::Spec->catdir( $DUMPS, $name . '.err' );
76
                         File::Spec->catdir( $DUMPS, $name . '.err' );
77
         system($cmd);
77
         system($cmd);

+ 1
- 1
bin/mksheet.pl Ver fichero

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

+ 2
- 2
bin/timestamp.pl Ver fichero

24
 sub stamp {
24
 sub stamp {
25
     my $time = shift;
25
     my $time = shift;
26
     my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = (localtime($time));
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
                     $hour,          $min,       $sec,     ( modf $time)[0] * 100000;
29
                     $hour,          $min,       $sec,     ( modf $time)[0] * 100000;
30
 }
30
 }
31
 
31
 

+ 2
- 2
cgi-bin/htlog/htlog.cgi Ver fichero

25
     my $unixtime = ($_[0] ? $_[0] : time );
25
     my $unixtime = ($_[0] ? $_[0] : time );
26
     my ($sec, $min, $hour, $mday, $mon, $year) = localtime $unixtime;
26
     my ($sec, $min, $hour, $mday, $mon, $year) = localtime $unixtime;
27
     return sprintf (
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
         $hour,          $min,       $sec
30
         $hour,          $min,       $sec
31
     );
31
     );
32
 }
32
 }

+ 1
- 1
lib/helper.pm Ver fichero

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

+ 2
- 2
lib/htsheet.pm Ver fichero

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