Columns jumping in a very specific case (writeHTML+end of paragraph)
PHP class for PDF
Brought to you by:
nicolaasuni
Hi Nicolas,
We are facing a pretty odd issue using templates which use setColumnsArray.
In a verry particular case, instead of going to the next column, the next column jumps to a new page and its first line goes to the complete area width (instead of column width).
This happends when :
I tried to trace through the code with xdebug, but got totally lost (in translation …)
Some observations :
Second attachment, with the result of the odd page break.
For those having a similar issue, as a workaround we are replacing any
</p><p>with two<br/><br/>(we keep the outer paragraph, it's required anyway).It's dirty, but it works that way in the meantime.
Actually, this gives us other issues, as not being able to use text-indent properly on each paragraph …
Last edit: Mathieu Masseboeuf 2015-09-29
(updated description, didn't noticed it got interpreted)
As a workarround for this workarround (we couldn't use text-indent - as the content was not based on paragraphes) - we created a special fond with various spacer width so we could have properly indented paragraphs.
All this is dirty, but at least it works in the meantime.