From 3f5d9537db4b07a993cc0a11fd4c03acb1859d20 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Sat, 13 Nov 2010 12:58:54 -0500 Subject: [PATCH] Fix for Bug 4451 Batch item tool can't process file with Windows line endings Signed-off-by: Galen Charlton Signed-off-by: Chris Cormack --- tools/batchMod.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/batchMod.pl b/tools/batchMod.pl index 7c03812640..84d1ae14b3 100755 --- a/tools/batchMod.pl +++ b/tools/batchMod.pl @@ -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; } -- 2.39.5