diff --git a/C4/Record.pm b/C4/Record.pm index b313fb8f97..990bb50b52 100644 --- a/C4/Record.pm +++ b/C4/Record.pm @@ -411,6 +411,8 @@ sub marcrecord2csv { foreach (@marcfields) { my $field = $_->{field}; + # Remove any blank char that might have unintentionally insered into the tag name + $field =~ s/\s+//g; # If we have a user-supplied header, we use it if (exists $_->{header}) {