X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FTemplate.pm;h=8a9e6832613272c50fd30de8e5ccc6e675a8aba0;hb=6ac037ceaeb565f385267b2f8794e28e7ce50af8;hp=a268ae6c9f74ff1752befcda9f95fa2039952c94;hpb=e7361d77e6e37bf1f5a3137e237ab03d6dbb316f;p=kivitendo-erp.git diff --git a/SL/Template.pm b/SL/Template.pm index a268ae6c9..8a9e68326 100644 --- a/SL/Template.pm +++ b/SL/Template.pm @@ -180,8 +180,7 @@ sub parse_foreach { } # Yes we need a manual page break -- or the user has forced one - if ((($current_line + $lines) > $lpp) || - ($form->{"description"}->[$i] =~ //)) { + if ((($current_line + $lines) > $lpp) || ($form->{"description"}->[$i] =~ //) || ($form->{"longdescription"}->[$i] =~ //)) { my $pb = $self->{"pagebreak_block"}; # replace the special variables <%sumcarriedforward%> @@ -453,7 +452,7 @@ sub parse { close(IN); $self->_parse_config_lines(\@lines); - $self->_force_mandatory_packages(\@lines); + $self->_force_mandatory_packages(\@lines) if (ref $self eq 'LaTeXTemplate'); my $contents = join("", @lines);