[Koha-patches] [PATCH] fix to remove blank newlines from labels
Mason James
mason.loves.sushi at gmail.com
Fri Jan 16 09:16:27 CET 2009
---
C4/Labels.pm | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/C4/Labels.pm b/C4/Labels.pm
index 79d5251..65c62a7 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' ) {
--
1.5.6.5
More information about the Koha-patches
mailing list