[ 
https://issues.apache.org/jira/browse/FOP-2060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14575232#comment-14575232
 ] 

Matthias Reischenbacher commented on FOP-2060:
----------------------------------------------

Andreas: I played around with the SUPPRESS_BREAK_BEFORE flag of the 
LayoutContext in order to avoid the break-before of the third block being 
processed. I check inside the AbstractBreaker if the last element list 
terminates with a forced break and if it does, I set the SUPPRESS_BREAK_BEFORE 
flag to true. What makes me doubt, if this is a valid approach, is that I have 
to take care that the flag is copied to all the LayoutContexts of the child 
LMs. What do you think?

> adjoining blocks with break-before="page" break-after="page" cause extra 
> empty page
> -----------------------------------------------------------------------------------
>
>                 Key: FOP-2060
>                 URL: https://issues.apache.org/jira/browse/FOP-2060
>             Project: FOP
>          Issue Type: Bug
>          Components: layout/unqualified
>    Affects Versions: trunk
>         Environment: Operating System: All
> Platform: All
>            Reporter: Luis Bernardo
>             Fix For: trunk
>
>         Attachments: 2060-empty-block-issue.xml, test.fo, test.pdf
>
>
> This causes five pages instead of four:
>       <fo:block>
>         <fo:block>page 1</fo:block>
>         <fo:block break-before="page" break-after="page">page 2</fo:block>
>         <fo:block break-before="page" break-after="page">page 3</fo:block>
>         <fo:block>page 4</fo:block>
>       </fo:block>
> The empty extra page happens between page 2 and page 3.



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

Reply via email to