[ 
https://issues.apache.org/jira/browse/FOP-2582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matthew Wilson updated FOP-2582:
--------------------------------
    Attachment: keep-bug.pdf
                keep-bug.xml

Example input (keep-bug.xml) and output (keep-bug.pdf) demonstrating the 
problem.

> keep-together.page=<integer> doesn't appear to have an effect
> -------------------------------------------------------------
>
>                 Key: FOP-2582
>                 URL: https://issues.apache.org/jira/browse/FOP-2582
>             Project: FOP
>          Issue Type: Bug
>          Components: fo/block
>    Affects Versions: 2.1
>         Environment: Java 64-bit 1.8.0_66 on MacOS X 10.11.3
>            Reporter: Matthew Wilson
>         Attachments: keep-bug.pdf, keep-bug.xml
>
>
> 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".
> *To reproduce:*
> Process the attached file, keep-bug.xml. E.g. "fop keep-bug.xml keep-bug.pdf"
> *Actual result:*
> "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.
> *Expected result:*
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to