From ac6bb92564f6afce8d50fa77bb454f662b3b7e57 Mon Sep 17 00:00:00 2001 From: Shawn Boyette Date: Tue, 7 Oct 2008 18:01:58 +0000 Subject: [PATCH] unless != if --- marc-cleanup | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/marc-cleanup b/marc-cleanup index 41aff58..a4f7ea5 100755 --- a/marc-cleanup +++ b/marc-cleanup @@ -203,8 +203,8 @@ sub write_record { print $FH '\n" if(defined $recmeta{explanation}); - # LOOP OVER %trash TO EXCISE UNWANTED TAGS1 - if (keys %trash) { + # excise unwanted tags + if (keys %trash or $conf->{autoscrub}) { my @trimmed = (); my $istrash = 0; for my $line (@record) { @@ -235,7 +235,7 @@ sub write_record { $renumber = join('', '', '', $conf->{'renumber-from'}, ''); - $renumber .= "\n" unless $conf->{nocollapse}; + $renumber .= "\n" if $conf->{nocollapse}; push @record, $renumber; $conf->{'renumber-from'}++; } -- 1.7.2.5