[Koha-patches] [PATCH] fix to remove blank newlines from labels

Joe Atzberger joe.atzberger at liblime.com
Tue Apr 28 17:23:28 CEST 2009


I guess you still could, but it would have to have " " or other whitespace?

--Joe

On Tue, Apr 28, 2009 at 8:05 AM, Galen Charlton
<galen.charlton at liblime.com>wrote:

> Hi,
>
> I've pushed this patch, but I have a question: wouldn't there be times
> when you might intentionally put a blank line in a label?
>
> Regards,
>
> Galen
>
> On Fri, Jan 16, 2009 at 4:16 AM, Mason James
> <mason.loves.sushi at gmail.com> wrote:
> >
> > ---
> >  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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-patches/attachments/20090428/0a2c6a63/attachment-0002.htm>


More information about the Koha-patches mailing list