Fix for Bug 4451 Batch item tool can't process file with Windows line endings

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 3f5d9537db)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
Owen Leonard 2010-11-13 12:58:54 -05:00 committed by Chris Nighswonger
parent dd79498768
commit 82e19e06e9
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ if ($op eq "show"){
my @contentlist;
if ($filefh){
while (my $content=<$filefh>){
chomp $content;
$content =~ s/[\r\n]*$//g;
push @contentlist, $content if $content;
}