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

Intermediate format introduces white space in SVG while it should not

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.5
    • Fix Version/s: None
    • Component/s: unqualified
    • Labels:
      None

      Description

      An xml:space="preserve" directive in an SVG image stored as an instream-foreign-object is not honoured. If an svg:text has an svg:tspan as a first child, that tspan will be put on the next line in the IF output no matter what, resulting into a space being added (coming from the newline between the text and the tspan) when rendering the IF into e.g., PDF.

        Attachments

        1. svg-if-space.fo
          1 kB
          Vincent Hennebert
        2. if.xml
          2 kB
          Vincent Hennebert
        3. fop.xconf
          0.3 kB
          Vincent Hennebert
        4. expected.pdf
          6 kB
          Vincent Hennebert
        5. actual.pdf
          6 kB
          Vincent Hennebert

          Activity

            People

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

              Dates

              • Created:
                Updated: