Affects Version/s: 2.1
Fix Version/s: None
Environment:Java 64-bit 1.8.0_66 on MacOS X 10.11.3
When trying to keep the contents of a block together on one page, I create a block with:
<fo:block keep-together.within-page="100"> ... </fo:block>
This does not seem to have any effect; it is as if the keep-together parameter is still set to "auto".
Process the attached file, keep-bug.xml. E.g. "fop keep-bug.xml keep-bug.pdf"
"Section 2" of the example content does not start on a new page; instead a page break appears in the middle of section 2, violating the keep-together attribute.
A page break should have been inserted between "section 1" and "section 2" so that "section 2" stays together on a page. This expected result can be demonstrated by changing the keep-together attribute to "always", which demonstrates that it is possible to fit "section 2" on a single page and therefore the integer keep-together constraint should do so.