Forum How do I...?

Page Breaking Table Rows Broken on 6.0 r4 - Had To Revert

silverRocket
Hi

We are having a problem with page breaking and table rows in prince 6 r4 (just released).

We were previously able to page-break on table rows by adding a class we made called "breakNow". The class definition is simply:

.breakNow {
page-break-after:always;
}

Upon upgrading from Prince 6r3 to Prince 6r4, we've noticed that these page breaks are completely ignored by Prince. That being said, we're still able to page-break <div>s - its the table rows that are causing us problems.

To solve the issue, we've reverted back to r3 and things are working normal.

So, something broke as you increased the revision number... thanks.
mikeday
Thanks, we'll investigate the issue.

Update: it seems that page-break-after is affected but page-break-before still works on table rows, so a short-term workaround would be to use a rule like this:
.breakNow + tr { page-break-before: always }

ie. table rows immediately following a .breakNow table row should break before.