Closed HeinrichAD closed 3 years ago
This seems to have been added in a recent version of PlantUML. The currently bundled version is 1.2021.2. I've updated the gem containing the PlantUML jar to 1.2021.5. Could you update the gem on your end and retest?
Thank you. I confirm the functionality. It's working without issues.
asciidoctor-diagram
.
PlantUML supports to assign a value to a variable, only if it is not already defined, with the syntax
!$a ?= "foo"
.!$a ?= "foo"
could be considered the short form of the following:Since there is a workaround, this is prio low, but once you start working with a lot of customizable parameters, it's pretty annoying and the code gets messy quickly.
References
Documentation: https://plantuml.com/preprocessing#788fa5fb2276ed17
Example below in action: PlantUML Online Example
Example
Expected
Actual
Syntax Error