includes are not honored within {{ }} block

0 votes
asked Jul 24, 2017 in Bug by boshka (2,770 points)
edited Feb 13 by boshka
1. Should {{ }} block honor parent's block includes, or should I put !include into the {{}} block explicitly again?

Neither of the above work.

@startuml

!include skins.iuml /'  this is not honored in the {{ }}  block below '/

a->b: test

note right

{{

!include skins.iuml /' *** this line is not evaluated as well '/

c->d

note right

test

end note

}}

end note

@enduml

2. additionally {{}} block does not honor the output format (if the parent is in svg format, the child {{}} will be generated as png)

1 Answer

0 votes
answered Jul 25, 2017 by plantuml (177,260 points)
Hi,
Thanks for the report.
About point 1) we have to think about it. A possible workaround is to duplicate your skins.iuml file to skins2.iuml and to include skins2.iuml in the {{}} block. Or to use !include_many in place of !include

About point 2), we fix the issue in last beta
https://www.dropbox.com/s/koo42q3d9gxw288/plantuml.jar?dl=0
It should work with SVG. Tell us if it does not.
commented Jul 26, 2017 by boshka (2,770 points)
point 2) works with the last beta, many thanks!
...