Andreas L. Delmelle commented on FOP-2060:

There is indeed nothing about "generating an empty area before jumping to the 
next page" in XSL 1.1, but that is not what is happening there either, I think. 
It is also not the same thing as blank-or-not-blank, which does not apply to 
either case mentioned here. 
What may be confusing is that the second page in Matthias' example is not 
really "empty". It does have content, namely one "empty" normal block area.

True, you can indeed not start a document with an empty page by one such block, 
since the break condition is immediately satisfied by the empty block area 
being the first in the page area. On the other hand, two consecutive ones would 
do that job nicely, if I understand correctly.

The last example... It depends on what comes before and after that block. The 
single "empty" normal block area would always end up on its own page, and that 
page would not be "empty". Perhaps _that_ was a bit unclear before.

All that said, the originally reported issue *was* definitely valid *and* 
resolved by the fix.

> 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

Reply via email to