Syntax Error when adding style on embedding diagram

0 votes
asked Apr 4 in Question / help by kasra (1,040 points)
reshown Apr 5 by kasra

Hi,

the following is of course working

@startmindmap

<style>

node {

BackgroundColor red

}

</style>

+ A

++ B

@endmindmap

this also works (the syntax error is not yet thrown)

@startuml

:{{mindmap

<style>

</style>

+ A

++ B

}};

@enduml

But this is KO I have a Syntax Error ( tested on 1.2024.4beta6 )

@startuml

:{{mindmap

<style>

node {

BackgroundColor red

}

</style>

+ A

++ B

}};

@enduml

Is it a way of adding style on embedded diagram ?

 thanks

commented Apr 5 by The-Lu (74,900 points)

Hi K., and all,

[In fact it is due to the old SDL shape management...]

Here is a workaround, using one-line... wink

@startuml
:a;
:{{mindmap\n<style>\nnode {\nBackgroundColor red\n}\n</style>\n+ A\n++ B\n}};
:b;
@enduml

Enjoy,
Regards,
Th.

commented Apr 5 by kasra (1,040 points)
even if it's not ideal at least it solves the issue.

Should we consider this a "wanted feature" if we would like to achieve this in multiple line?

as usual THANKS, man.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...