Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Categories

Bug! yEd 3.19.1.1 adds spaces and line breaks to node texts

0 votes

Create new document. Add one node with simple text:

Save document and open it again:

The extra spaces (and line breaks) in the graphml-File:

in Help by
recategorized by

1 Answer

0 votes

While there has been a change in how text is written to XML files in Java 9's XML framework (compared to the way text was written in Java 8 and earlier), yEd has been adjusted to this change since yEd version 3.17.2.

Indeed, using yEd 3.19.1.1 with Java 11.0.2, your single node example results in the following GraphML file:

<graphml ...>
  <graph ...>
    ...
    <node id="n0">
      ...
        <y:ShapeNode>
          ...
          <y:NodeLabel ... xml:space="preserve">This is centered<y:LabelModel>...</y:ModelParameter></y:NodeLabel>
          ...
        </y:ShapeNode>
      </data>
    </node>
  </graph>
  ...
</graphml>

Note the xml:space="preserve" attribute for the <y:NodeLabel> element.

by [yWorks] (160k points)
Legal Disclosure | Privacy Policy
...