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

space missing before fo:page-number-citation-last in PDF output

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.1
    • None
    • renderer/pdf
    • None

    Description

      When you generate a PDF from FO such as:

      <fo:block><fo:inline>of </fo:inline><fo:page-number-citation-last ref-id="page2"/></fo:block>

      the whitespace between the word "of" and the page-number-citation-last element is lost.

      In http://apache-fop.1065347.n5.nabble.com/preserving-a-trailing-space-in-inline-td40644.html Pascal Sancho
      diagnosed that the issue arises when a fo:page-number-citation-last (PNCL) comes after a fo:inline element
      and no content comes after the PNCL.

      He also identified a workaround: "Just add a character AFTER the PNCL element other than a regular white space"

      I'm also attaching his test FO file

      Attachments

        1. _test.fo
          1 kB
          Jason Harrop
        2. FOP-2374_Clear_pendingInlines_when_text_is_found_.patch
          0.7 kB
          Juan
        3. test-input.fo
          0.9 kB
          Juan

        Activity

          People

            Unassigned Unassigned
            jharrop Jason Harrop
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: