From ca9ba8b8039c57df84d917752f1f71019ea889a2 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: Henri-Damien LAURENT --- C4/Labels.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/Labels.pm b/C4/Labels.pm index 79d5251600..65c62a732a 100644 --- a/C4/Labels.pm +++ b/C4/Labels.pm @@ -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' ) { -- 2.39.5