flyingsaucerproject/flyingsaucer — pull request #25 by jensrutschmann (2012-12-13 12:28:13+00:00)
Title: Follow-up fix for: First page should be a right page

Follow-up commit for 74029785c59ba8c816aaeb40aef6eeac67ae37a3: First page should be a right page

The PageBox class was not aware of the changes in the aforementioned commit and still handled the first page as a left page. This commit fixes this by swapping the implementations of PageBox.isLeftPage() and PageBox.isRightPage().

Here is some sample HTML for testing this. Before the fix the divs with page-break-before:right started on a left page, after applying the fix they correctly start on a right page.

test document

some text

more text