@@ -, +, @@ --- Koha/MetadataRecord.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/Koha/MetadataRecord.pm +++ a/Koha/MetadataRecord.pm @@ -125,7 +125,7 @@ sub stripWhitespaceChars { my $key = $subfield->[0]; my $value = $subfield->[1]; $value =~ s/[\n\r]+/ /g; - $value =~ s/^\s+|\s+$|^\t+|\t+$//g; + $value =~ s/^\s+|\s+$//g; $field->add_subfields( $key => $value ); # add subfield to the end of the subfield list $field->delete_subfield( pos => 0 ); # delete the subfield at the top of the subfield list } --