Revision 9862757a
Von Sven Schöling vor mehr als 9 Jahren hinzugefügt
modules/override/PDF/Table.pm | ||
---|---|---|
}
|
||
|
||
# Lets take from paragraph as many words as we can put into $width - $indent;
|
||
while ( @paragraph and $text_object->advancewidth( join("\x20", @line)."\x20" . $paragraph[0]) +
|
||
$line_width < $width )
|
||
# Always take at least one word; otherwise we'd end up in an infinite loop.
|
||
while ( !scalar(@line) || (
|
||
@paragraph && (
|
||
$text_object->advancewidth( join("\x20", @line)."\x20" . $paragraph[0]) + $line_width < $width
|
||
)
|
||
))
|
||
{
|
||
push(@line, shift(@paragraph));
|
||
}
|
Auch abrufbar als: Unified diff
Endlosschleife im PDF-Tabellenmodul und damit im PDF-Export gefixt
Wenn die Tabelle zu breit wird und dann irgendwann nicht einmal mehr ein
Wort in eine Zeile passt, dann muss das Wort trotzdem gesetzt werden;
andernfalls würde das PDF::Table-Modul in einer Endlosschleife enden.
Fix für Bug 863.
Reimplementiert commit 23223ef4302931a6a141c659bfda7ef6c7546b77