Autofilling/Autoformatting in Plantuml is messing up and throwing syntax error
Description
Environment
Attachments
Activity
J Ralston April 23, 2024 at 7:17 PM
I will need to check with the team as it would seem to include potentially sensitive information of the macro inputs themselves.
Michael Griffel April 23, 2024 at 7:12 PM
@J Ralston Can you please share me the page storage format from the original page and your user’s page?
J Ralston April 23, 2024 at 7:03 PM
I made a copy of my user’s page and edited it by adding a PlantUML macro and copying the contents from the original PlantUML render macro into it. Below you will still see the syntax error.
Michael Griffel April 23, 2024 at 6:35 PM
@J Ralston : The magic string replacement from “->” to “→” is done by the Confluence page editor and cannot be changed by the plantuml macro.
However I would still recommend to use the PlantUML macro for user input instead of the PlantUML render macro because the render macro is designed to process/support nested macros.
J Ralston April 23, 2024 at 1:34 PMEdited
@Michael Griffel are you saying that due to the upgrade, users need to change their behavior as a result? Things were working properly prior to doing so, using the PlantUML render macro. If that is the case, can you confirm that their options are two-fold- either A.) fix existing broken macros and prevent future problems by encapsulating text in Code Block macro OR B.) replace existing and begin using PlantUML macro instead? Thanks!
Team,
I am using PlantUML render macro version 2024.13. here is my UML code and actual UML block
@startuml skinparam sequenceMessageAlign right box "Sysrtem 1" #LightBlue participant CCE as cce participant DS_Sidecar as ds participant Embedded_Repo as emrepo end box box "System 2" #LightCyan participant OnPrem_Repo as oprepo endbox box "Dell" #LemonChiffon participant ACG as acg participant Dell_Digital as dd endbox cce -> ds : monitor ds -> emrepo : monitor alt already_monitoring activate emrepo emrepo -> emrepo : reg_hook emrepo -> ds : success ds -> cce : success deactivate emrepo else new alt have_parent emrepo -> oprepo : monitor activate oprepo alt new oprepo -> oprepo : schedule end oprepo -> oprepo : reg_hook oprepo -> emrepo : success deactivate oprepo emrepo -> ds : success ds -> cce : success end end @enduml
Autoformatting/Autofilling converts special characters
For example it replaces combinations like this “->” with a special arrow character like this “→ “. The special character is not supported by PlantUML and therefore it throws a syntax error.
Another error is while using space. For example my ALT block looks like this
alt already_monitoring
activate emrepo
but when i add a space like this
alt already_monitoring
(4 spaces added)activate emrepo
it is throwing an error.