String templates in styles are not properly escaped
Cinco Version
- Current Nightly (13.01.22)
- On Windows
MRE
- as usual, create a new Cinco Product Project
- replace the
style("${label}")
withstyle labeledCircle("Line\nbreak")
. - add a new node (as shown below) which show another missing escape sequence
stylePath "model/SomeGraph.style"
graphModel SomeGraphGraphModel {
diagramExtension "somegraph"
containableElements(SomeNode)
}
node SomeNode {
style labeledCircle("Line\nbreak")
incomingEdges (*)
outgoingEdges (*)
attr EString as label
}
node OtherNode {
style labeledCircle("Quote\" after")
incomingEdges (*)
outgoingEdges (*)
attr EString as label
}
edge Transition {
style simpleArrow
}
This leads to errors in the generated code.
info.scce.cinco.product.somegraph.mglid.editor.graphiti.features.add.AddFeatureOtherNode.java#82
java.lang.String _expression = "Quote" after";
info.scce.cinco.product.somegraph.mglid.editor.graphiti.features.add.AddFeatureSomeNode.java#82-83
java.lang.String _expression = "Line
break";
If used in Source code, the values should be escaped instead of being used as raw literal.
Edited by Sebastian Teumert