}
}
elsif (tok =~/[\)\]\}]/) {
- $min_indentation = $indentation{$seqno}
- delete $indentation{$seqno}
+ $min_indentation = $indentation{$seqno};
+ delete $indentation{$seqno};
if ($indentation < $min_indentation) {$indentation = $min_indentation}
}
EOM
my $ok=1;
if (@expected_output == @tidy_output) {
while ( $_ = pop @tidy_output ) {
+ s/\s+$//;
my $expect = pop @expected_output;
+ $expect=~s/\s+$//;
if ( $expect ne $_ ) {
print STDERR "got:$_";
print STDERR "---\n";
$indentation{$seqno} = indentation;
}
} elsif ( tok =~ /[\)\]\}]/ ) {
- $min_indentation =
- $indentation{$seqno} delete $indentation{$seqno}
- if ( $indentation < $min_indentation )
- {
+ $min_indentation = $indentation{$seqno};
+ delete $indentation{$seqno};
+ if ( $indentation < $min_indentation ) {
$indentation = $min_indentation;
}
}