fix to remove blank newlines from labels
authorMason James <mason.loves.sushi@gmail.com>
Fri, 16 Jan 2009 08:16:27 +0000 (21:16 +1300)
committerHenri-Damien LAURENT <henridamien@koha-fr.org>
Tue, 27 Jan 2009 11:19:47 +0000 (12:19 +0100)
Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
C4/Labels.pm

index 79d5251..65c62a7 100644 (file)
@@ -1098,6 +1098,7 @@ sub DrawSpineText {
             }
             # loop for each string line
             foreach my $str (@strings) {
+                next if $str eq '';
                 my $hPos = 0;
                 my $stringwidth = prStrWidth($str, $fontname, $fontsize);
                 if ( $$conf_data->{'text_justify'} eq 'R' ) {