}
# Yes we need a manual page break -- or the user has forced one
- if ((($current_line + $lines) > $lpp) ||
- ($form->{"description"}->[$i] =~ /<pagebreak>/)) {
+ if ((($current_line + $lines) > $lpp) || ($form->{"description"}->[$i] =~ /<pagebreak>/) || ($form->{"longdescription"}->[$i] =~ /<pagebreak>/)) {
my $pb = $self->{"pagebreak_block"};
# replace the special variables <%sumcarriedforward%>
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);