FOP
  1. FOP
  2. FOP-1223

Invalid extra page break creates an undesired empty page

    Details

    • Type: Bug Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: trunk
    • Fix Version/s: None
    • Component/s: layout/unqualified
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All
    • External issue ID:
      40230

      Description

      When there is an <fo:block break-after="page"/> and nothing after it in the
      flow, a new page is still created, whereas section 7.19.1 of the recommendation
      states that it should be the case only if there is material to typeset
      afterwards. See the attached fo sample.
      The result is the same if we replace break-after by break-before.
      Same result also if we remove the indenting such that all the closing tags after
      the block are sticked together, so this is not a whitespace handling issue.

      I guess that a Knuth penalty of value -infinity is generated for such a block,
      and this doesn't play well with the (infinite glue, -infinite penalty) pair
      which is probably added at the end of the page sequence. The penalty should
      probably be only generated if there is also some box after it, and before the
      ending pair.

      If nobody takes this bug I'll have a look at it after the GSoC.

      1. block_break-after_nested.xml
        2 kB
        Vincent Hennebert
      2. break-after.fo
        0.6 kB
        Vincent Hennebert

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Vincent Hennebert
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development