multiLine attributes are not stored correctly in Gratext
Summary
In CINCO v1.0, each update to a ModelElement
will introduce more artifacts to any of its @multiLine
properties that have multiple lines of content.
Expected Behavior
The content of a @multiLine
property does not change other than via CustomAction
s, Hook
s, or user interaction.
Actual Behavior
Entering a multi-line value in the CincoPropertiesView and switching to the Source view introduces white space and line break characters to the property value.
Steps to Reproduce
- Create a new CincoProductProject with default settings
- Open
info.scce.cinco.product.somegraph › model › SomeGraph.mgl
- Add a
@multiLine
annotation to thelabel
attribute of the node typeSomeNode
and save - Generate the product
- Run the product
- Create a new SomeGraphToolProject
- In this project, create a
SomeGraph
model - In this model, create a
SomeNode
with a multi-line label - De- and re-select the
SomeNode
; observe that the label value does not change - Save the model
- Re-select the
SomeNode
; observe that all lines except the first one are indented - Create a second
SomeNode
- Switch to the Source view
- Observe that all lines except the first one are prefixed with two
\n
characters and several spaces - Switch back to the Diagram view
- Select the
SomeNode
; observe that subsequent lines have been indented even further