Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-1488

[PATCH] orphans/widows not respected in some cases

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 2.5
    • None
    • unqualified
    • None
    • Operating System: All
      Platform: All
    • 44328

    Description

      When I process the following fo, I get a PDF with a one-line widow at the start
      of the second page, even though widows for that fo:block is set to 4.

      <?xml version="1.0" encoding="ISO-8859-1"?>

      <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

      <fo:layout-master-set>
      <fo:simple-page-master master-name="A4">
      <fo:region-body />
      </fo:simple-page-master>
      </fo:layout-master-set>

      <fo:page-sequence master-reference="A4">
      <fo:flow flow-name="xsl-region-body">
      <fo:block>Paragraph</fo:block>
      <fo:block>Paragraph</fo:block>
      <fo:block>Paragraph</fo:block>
      <fo:block>Paragraph</fo:block>
      <fo:block>Paragraph</fo:block>
      <fo:block>Paragraph</fo:block>
      <fo:block>Paragraph</fo:block>
      <fo:block>Paragraph</fo:block>
      <fo:block>Paragraph</fo:block>
      <fo:block>Paragraph</fo:block>
      <fo:block>Paragraph</fo:block>
      <fo:block>Paragraph</fo:block>
      <fo:block>Paragraph</fo:block>
      <fo:block widows="4" linefeed-treatment="preserve" >line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      line
      </fo:block>
      </fo:flow>
      </fo:page-sequence>

      </fo:root>

      Attachments

        1. b44328_test.patch
          24 kB
          Andreas L. Delmelle
        2. b44328.patch
          57 kB
          Andreas L. Delmelle
        3. b44328.patch
          57 kB
          Andreas L. Delmelle
        4. b44328.patch
          47 kB
          Andreas L. Delmelle
        5. b44328.patch
          25 kB
          Andreas L. Delmelle
        6. b44328.patch
          10 kB
          Andreas L. Delmelle
        7. b44328.patch
          43 kB
          Andreas L. Delmelle
        8. b44328.patch
          13 kB
          Andreas L. Delmelle
        9. block_orphans_widows.fo
          15 kB
          Andreas L. Delmelle
        10. block_orphans_widows.fo
          11 kB
          Andreas L. Delmelle
        11. block_orphans_widows.fo
          9 kB
          Andreas L. Delmelle
        12. block_orphans_widows.fo
          9 kB
          Andreas L. Delmelle
        13. block_orphans_widows.fo
          7 kB
          Andreas L. Delmelle
        14. FOP-1488-code.patch
          40 kB
          Andreas L. Delmelle
        15. FOP-1488-test.patch
          59 kB
          Andreas L. Delmelle
        16. widow.fo
          1 kB
          Andrew McFarland

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            adelmelle Andreas L. Delmelle
            aamcfarland@gmail.com Andrew McFarland

            Dates

              Created:
              Updated:

              Slack

                Issue deployment