[Koha-patches] [PATCH] Fix for Bug 4451 Batch item tool can't process file with Windows line endings
Owen Leonard
oleonard at myacpl.org
Fri Jul 9 19:42:41 CEST 2010
---
tools/batchMod.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/batchMod.pl b/tools/batchMod.pl
index f5138d1..d511d98 100755
--- a/tools/batchMod.pl
+++ b/tools/batchMod.pl
@@ -171,7 +171,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.4
More information about the Koha-patches
mailing list