Hello Tim, Welcome to the orgmode list!
Tim Hansinger <[email protected]> writes: > I am looking for guidance/proposals to the code fix I provide here. If it is > acceptable however I would suggest to implement it. > > Problem description > > Currently variables are not working if @start... and @end... lines are > defined in a code block. I just tried to reproduce this problem with gantt, but this works for me: #+begin_src plantuml :file my-complex-project.png :exports both :var closed_date="2021-04-28" @startgantt saturday are closed sunday are closed closed_date is closed ' see https://plantuml.com/gantt-diagram Project starts at 2021-04-26 [Configuration] as [C] on {DEV1:50%} lasts 1 day note bottom description end note [Implementation] as [I] on {DEV2} lasts 3 days note bottom in multiple lines end note [I] starts at [C]'s end with green bold link {DEV2} is off on 2021-04-30 @endgantt #+end_src Does this fail for you? > Examples > > Non-working example > > This example does not work (in the image output the text will be replace_me): > > #+begin_src plantuml :var replace_me="this is variable content" > @startuml > "replace_me" > @enduml > #+end_src When I give a file argument, it works for me: #+begin_src plantuml :var replace_me="this is variable content" :file /tmp/filei.png @startuml "replace_me" @enduml #+end_src Result is attached. Which version of org and emacs do you use? I have org 9.7.34 and emacs 31.0.50 Best wishes, Arne
-- Unpolitisch sein heißt politisch sein, ohne es zu merken. draketo.de
signature.asc
Description: PGP signature
