Changeset 12818


Ignore:
Timestamp:
10/20/11 15:36:41 (19 months ago)
Author:
OlivierRaginel
Message:

Item11189: Finally, perltidy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Release01x01/core/lib/Foswiki/Render.pm

    r12817 r12818  
    325325        elsif ( $lines->[$i] =~ s/$TRMARK=(["'])(.*?)\1//i ) { 
    326326            if ($2) { 
    327                 # In head or foot 
     327 
     328                # In head or foot 
    328329                if ($inFoot) { 
    329                     #print STDERR "FOOT: $lines->[$i]\n"; 
     330 
     331                    #print STDERR "FOOT: $lines->[$i]\n"; 
    330332                    $footLines++; 
    331333                } 
    332334                else { 
    333                     #print STDERR "HEAD: $lines->[$i]\n"; 
     335 
     336                    #print STDERR "HEAD: $lines->[$i]\n"; 
    334337                    $headLines++; 
    335338                } 
    336339            } 
    337340            else { 
    338                 # In body 
    339                 #print STDERR "BODY: $lines->[$i]\n"; 
     341 
     342                # In body 
     343                #print STDERR "BODY: $lines->[$i]\n"; 
    340344                $inFoot    = 0; 
    341345                $headLines = 0; 
     
    344348        $i--; 
    345349    } 
    346     $lines->[$i++] = CGI::start_table( 
     350    $lines->[ $i++ ] = CGI::start_table( 
    347351        { 
    348352            class       => 'foswikiTable', 
     
    354358 
    355359    if ($headLines) { 
    356         splice( @$lines, $i++, 0, '<thead>' ); 
     360        splice( @$lines, $i++,            0, '<thead>' ); 
    357361        splice( @$lines, $i + $headLines, 0, '</thead>' ); 
    358         $i += $headLines + 1; 
     362        $i += $headLines + 1; 
    359363    } 
    360364 
    361365    if ($footLines) { 
    362         # Extract the foot and stick it in the table after the head (if any) 
    363         # WRC says browsers prefer this 
     366 
     367        # Extract the foot and stick it in the table after the head (if any) 
     368        # WRC says browsers prefer this 
    364369        my $firstFoot = scalar(@$lines) - $footLines; 
    365370        my @foot = splice( @$lines, $firstFoot, $footLines ); 
    366         unshift(@foot, '<tfoot>'); 
    367         push( @foot, '</tfoot>' ); 
    368         splice( @$lines, $i, 0, @foot ); 
    369         $i += scalar(@foot); 
     371        unshift( @foot, '<tfoot>' ); 
     372        push( @foot, '</tfoot>' ); 
     373        splice( @$lines, $i, 0, @foot ); 
     374        $i += scalar(@foot); 
    370375    } 
    371376    splice( @$lines, $i, 0, '<tbody>' ); 
     
    799804        } 
    800805        else { 
    801             $text                 = _escapeAutoLinks($text); 
     806            $text = _escapeAutoLinks($text); 
    802807        } 
    803808    } 
     
    10151020    my $formTopicObject = $this->{ffCache}{ $topicObject->getPath() . $rev }; 
    10161021    unless ($formTopicObject) { 
    1017         undef $rev unless $rev; 
     1022        undef $rev unless $rev; 
    10181023        $formTopicObject = 
    10191024          Foswiki::Meta->load( $this->{session}, $topicObject->web, 
     
    10271032                $topicObject->topic, '' ); 
    10281033        } 
    1029         $this->{ffCache}{ $formTopicObject->getPath() . ($rev||0) } = 
     1034        $this->{ffCache}{ $formTopicObject->getPath() . ( $rev || 0 ) } = 
    10301035          $formTopicObject; 
    10311036    } 
Note: See TracChangeset for help on using the changeset viewer.