defining a theme for embedded diagram breaks it

0 votes
asked Sep 26, 2023 in Bug by boshka (3,960 points)
The following code fails (though it shouln't):

@startuml

component a {
}

note top of a: \n==theme fail==\n{{\n!theme crt-amber\nUser->System: test\n}}\n

@enduml

Please have a look: http://www.plantuml.com/plantuml/umla/9SWn2W8n40NGFgSO3x0NM8YN4Bjful8N1VCd9B-HaBjRx2lV4RK5GLcncLPA3C4KpUAqifipPxrHOMVvV7DspkcyNNLqRQM-q9tFWRxT7xyXrDs48UTQplG7
commented Sep 26, 2023 by The-Lu (70,400 points)

Hi B., and all,

It is due to mono-line management and preprocessing passes.

Then a workaround will be to use multi-line embedded diagram as:

@startuml

component a {
}

note top of a
==theme don't fail==
{{
!theme crt-amber
User->System: test
}}
end note
@enduml


If that can help,
Regards,
Th.

commented Sep 26, 2023 by boshka (3,960 points)
Hi The-Lu,

thank you, I know about the workaround. However, I believe, both options should work if supported. So, filed this ticked for eventual fixing if possible.

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.
...