[Koha-patches] [PATCH] [SIGNED-OFF 1/2] Fix for Bug 4451 Batch item tool can't process file with Windows line endings
Galen Charlton
gmcharlt at gmail.com
Sat Nov 13 18:58:54 CET 2010
From: Owen Leonard <oleonard at myacpl.org>
Signed-off-by: Galen Charlton <gmcharlt at gmail.com>
---
tools/batchMod.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/batchMod.pl b/tools/batchMod.pl
index 7c03812..84d1ae1 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;
}
--
1.7.0
More information about the Koha-patches
mailing list