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

Minor bug with fo:marker

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.5
    • None
    • unqualified
    • None
    • Operating System: Windows XP
      Platform: PC
    • 46960

    Description

      When a document sets and clears markers in order to display headers on some pages and not others, an empty marker element fails to clear the marker. This is more easily explained with an example. So I have attached the example FO. In this example there are 3 pages, with the marker retrieved to the header. The marker is cleared on the first page, set on page 2 and cleared on page 3. So I only expect the Continued text to appear in the header of page but it also appears on page 3 as well.

      Changing <fo:marker marker-class-name="Continued"/> to

      <fo:marker marker-class-name="Continued"><fo:block></fo:block></fo:marker>

      solves the problem, but this is a bug that ought to be fixed.

      Attachments

        1. test-markers.fo
          1.0 kB
          Chris Bowditch

        Activity

          People

            fop-dev@xmlgraphics.apache.org fop-dev
            cbowditch Chris Bowditch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: