xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49835] Wrong page break with 2 columned region and tables
Date Tue, 01 Feb 2011 12:15:04 GMT

Andreas L. Delmelle <adelmelle@apache.org> changed:

           What    |Removed                     |Added
         OS/Version|                            |All

--- Comment #6 from Andreas L. Delmelle <adelmelle@apache.org> 2011-02-01 07:15:00 EST
Operating on a hunch, I tried prepending each blockList in
AbstractBreaker.doLayout() with an auxiliary penalty (w=0, p=0). At line 394, I
added a simple:

  blockList.add(0, new KnuthPenalty(0, 0, false, null, true));

It seems to trigger correct behavior in this case, as the entire block is now
deferred to the second page, where it can be kept together in one column.
On the other hand, that quick hack breaks quite some testcases. All those that
check for element-list content now suddenly have to deal with an extra element
at position 0...

Fact remains that, without this penalty, the last forced node points to
position 0, which corresponds to the first box, while it should actually point
to the position preceding the first box.

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message