Hi,
We found another problem with pagebreaking. It looks very similar to the bug described in my earlier post (which is now fixed)
A simple testcase which demonstrates the problems is the following:
The real case is a bit more complicated, but the outcome is the same:
The result is that the blockheader, the header and the table all start on a page of their own.
What we want is the blockheader, the header and the first part of the table to appear on the first page, and the last part of the table on the second page (and if needed the third etc etc).
When splitting a collection of elements that shouldn't be broken apart according to the page-breaking rules prince should (in my opinion) always aim to minimize the number of pages the content is split to.
PS: I thought I posted this message last night .. but it seems to be eaten (or I was to sleepy to hit the submit button ..)
We found another problem with pagebreaking. It looks very similar to the bug described in my earlier post (which is now fixed)
A simple testcase which demonstrates the problems is the following:
<style>
div
{
width: 25px;
height: 125px;
background-color: blue;
page-break-after: avoid;
}
</style>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
The real case is a bit more complicated, but the outcome is the same:
<div>
<div>block header</div>
<div>
<div>
<div>header</div>
<div>
<table>
<thead>
</thead>
<tbody>
... content spans more than 1 page
</tbody>
</table>
</div>
</div>
</div>
</div>
The result is that the blockheader, the header and the table all start on a page of their own.
What we want is the blockheader, the header and the first part of the table to appear on the first page, and the last part of the table on the second page (and if needed the third etc etc).
When splitting a collection of elements that shouldn't be broken apart according to the page-breaking rules prince should (in my opinion) always aim to minimize the number of pages the content is split to.
PS: I thought I posted this message last night .. but it seems to be eaten (or I was to sleepy to hit the submit button ..)