From f6571fa5c2a9e1629ea389e32a7ba294cc374ab2 Mon Sep 17 00:00:00 2001 From: Mason James Date: Fri, 16 Jan 2009 21:16:27 +1300 Subject: [PATCH] fix to remove blank newlines from labels Signed-off-by: Galen Charlton --- C4/Labels.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/Labels.pm b/C4/Labels.pm index 827ce91bcb..14d322730f 100644 --- a/C4/Labels.pm +++ b/C4/Labels.pm @@ -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); -- 2.20.1