Menu

#1077 Columns jumping in a very specific case (writeHTML+end of paragraph)

v1.0_(example)
open
1
2015-12-11
2015-08-18
No

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 :

  • We are at the end of a paragraph one line before the end of the first column
  • Followed by a new paragraph

I tried to trace through the code with xdebug, but got totally lost (in translation …)

Some observations :

  • Replacing paragraphs with two line breaks works as expected.
  • If the next paragraph starts with some other tags (bold, underline, whatever), it also works as expected.
  • If the paragraph ends at the end of the zone, everything works as expected
1 Attachments

Discussion

  • Mathieu Masseboeuf

    Second attachment, with the result of the odd page break.

     
  • Mathieu Masseboeuf

    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
  • Mathieu Masseboeuf

    (updated description, didn't noticed it got interpreted)

     
  • Mathieu Masseboeuf

    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.

     

Log in to post a comment.

MongoDB Logo MongoDB