Bug 45134 - FOP unwarranted page split on table with numbre-rows-spanned
Summary: FOP unwarranted page split on table with numbre-rows-spanned
Status: NEW
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: page-master/layout (show other bugs)
Version: trunk
Hardware: PC Windows 2000
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-05 01:47 UTC by Guillaume Levrero
Modified: 2012-06-27 15:30 UTC (History)
0 users



Attachments
FO to reproduce issue. (15.70 KB, text/plain)
2008-06-05 01:47 UTC, Guillaume Levrero
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Levrero 2008-06-05 01:47:06 UTC
Created attachment 22077 [details]
FO to reproduce issue.

Hi

I have a use-case where three successive tables with number-rows-spanned that should fit in one page are actually split across two pages .
The same three successive tables with NO number-rows-spanned fit in one page.

See inclused FO.

Thanks.
Comment 1 Vincent Hennebert 2008-06-05 03:56:23 UTC
Hi,

Thanks for the bug report and the clean testcase. It's probably a duplicate of bug #45047 but I need to further investigate to be sure. Basically the fixed heights set on table-row elements are creating trouble. If you remove them you get the same result without the spurious page.

I can imagine the stepping effect you want to achieve by setting heights on the table rows. I guess you're not happy with the result FOP currently produces (without regards to the spurious page)? :-\

Vincent
Comment 2 Glenn Adams 2012-04-07 01:41:23 UTC
resetting P2 open bugs to P3 pending further review
Comment 3 Glenn Adams 2012-04-11 06:16:35 UTC
change status from ASSIGNED to NEW for consistency
Comment 4 chuck.mccallum+fop 2012-06-27 15:30:19 UTC
I found this bug via http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/201103.mbox/browser. 

It's ugly, but if anyone needs an ad-hoc work-around, you can add an invisible "word" of non-breaking spaces so that the content of the cell actually spans as many rows as have been allotted for it. ie, replace

<fo:table-cell number-rows-spanned="2">
   <fo:block>Too short!</fo:block>
</fo:table-cell>

with

<fo:table-cell number-rows-spanned="2">
   <fo:block>Too short &#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;</fo:block> 
</fo:table-cell>

The invisible word gets line wrapped, assuming your table is narrow enough, and the new block of text is not vulnerable to page-breaking from this bug.

For what that's worth.