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.laurent@biblibre.com>
Thu, 30 Apr 2009 12:30:38 +0000 (14:30 +0200)
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
C4/Labels.pm

index 827ce91..14d3227 100644 (file)
@@ -1077,6 +1077,7 @@ sub DrawSpineText {
             # loop for each string line
             foreach my $str (@strings) {
                 my $hPos = $x_pos;
+                next if $str eq '';
                 my $stringwidth = prStrWidth($str, $fontname, $fontsize);
                 if ( $$conf_data->{'text_justify'} eq 'R' ) { 
                     $hPos += $label_width - ($left_text_margin + $stringwidth);