Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-8161

SVG export creates problem in edit text

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 6.06/02
    • Fix Version/s: 6.08/00
    • Component/s: Graphics
    • Labels:
      None
    • Environment:

      Ubuntu

      Description

      If I save any canvas as svg and edit it with inkscape, I can edit text correctly apart from the white spaces that are not treated correctly (only one space at a time can be inserted inside the text).
      This is due to a bug in the text export from root: the <text> tag should contain the following key:
      xml:space="preserve"
      when adding the key manually, the svg file can be correctly edited.

      The attached Example.cpp creates a file (Example.svg) which I edited adding the aforementioned tag to one text element only to demonstrate this.

        Attachments

        1. Example.cpp
          0.2 kB
        2. Example.svg
          0.6 kB

          Activity

            People

            • Assignee:
              couet Olivier Couet
              Reporter:
              mersi Stefano Mersi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Actual End: