summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/test/read_t.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-11-25 15:58:26 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-11-25 15:58:26 +0000
commitacd30220688c4ece7f7cdf372b094277dcac8677 (patch)
tree03b19bcd2e19f9418405c81ea8a73cbfa9745ecf /perl_checker.src/test/read_t.pm
parente1bc7a05a6e605f1281ea86d10b39241ecb25093 (diff)
downloadperl-MDK-Common-acd30220688c4ece7f7cdf372b094277dcac8677.tar
perl-MDK-Common-acd30220688c4ece7f7cdf372b094277dcac8677.tar.gz
perl-MDK-Common-acd30220688c4ece7f7cdf372b094277dcac8677.tar.bz2
perl-MDK-Common-acd30220688c4ece7f7cdf372b094277dcac8677.tar.xz
perl-MDK-Common-acd30220688c4ece7f7cdf372b094277dcac8677.zip
enhance to have no remaining spaces
Diffstat (limited to 'perl_checker.src/test/read_t.pm')
-rw-r--r--perl_checker.src/test/read_t.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl_checker.src/test/read_t.pm b/perl_checker.src/test/read_t.pm
index d7d9b9c..a07c041 100644
--- a/perl_checker.src/test/read_t.pm
+++ b/perl_checker.src/test/read_t.pm
@@ -15,6 +15,7 @@ sub read_t {
} else {
$column_width ||= length(first(/(.{20}\s+)/));
my ($line, $log) = $column_width > 25 && /(.{$column_width})(.*)/ ? (chomp_($1) . "\n", $2) : ($_, '');
+ $line =~ s/[ \t]*$//;
push @lines, $line;
push @logs, $log;
}