strip spaces from end of value
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 23 Oct 2010 20:11:48 +0000 (22:11 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 23 Oct 2010 20:11:48 +0000 (22:11 +0200)
Aleph.pm

index 1696dc1..8fdb1de 100644 (file)
--- a/Aleph.pm
+++ b/Aleph.pm
@@ -146,6 +146,7 @@ warn "parse $nr";
                sub field {
                        my ( $f, $v ) = @_;
                        $v =~ s/\Q&nbsp;\E/ /gs;
+                       $v =~ s/\s+$//gs;
 warn "## $f\t$v\n";
                        $hash->{$f} = $v;