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:
parent
dd79498768
commit
82e19e06e9
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue