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

Galen Charlton galen.charlton at liblime.com
Tue Apr 28 14:05:25 CEST 2009


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
>
> _______________________________________________
> Koha-patches mailing list
> Koha-patches at lists.koha.org
> http://lists.koha.org/mailman/listinfo/koha-patches
>



-- 
Galen Charlton
VP, Research & Development, LibLime
galen.charlton at liblime.com
p: 1-888-564-2457 x709
skype: gmcharlt



More information about the Koha-patches mailing list