Is there a command option to suppress the generation of the secondary svg file?

0 votes
asked Feb 4, 2020 in Question / help by vonhabsi (140 points)
I am using plantuml-mode emacs plugin to generate svg files in emacs and I noticed that an additional svg image is created which cause Firefox and Chrome to generate an error

This can be seen after line 29 in the pastebin at https://pastebin.com/nqjvkbqQ

I have used the stable sourceforge version  of 2020.01.12 and the latest beta at 2020.02.02 from beta.plantuml.net and they all add the additonal svg.

I have asked a question about it at https://forum.plantuml.net/10754/plantuml-generates-faulty-svg-from-a-script, but realize that it must be an option that needs to be suppressed or requires a separate build.

Are there some options to control it?

Is there a list of the command line options plantuml accepts?
commented Feb 25, 2020 by Hui Liu
See my answer in your previous question. it should be the ob-plantuml issue, save your plantuml code block into test.puml and use the command line you will get the expected result:

java -jar plantuml.jar -charset utf-8 -tsvg test.puml

1 Answer

0 votes
answered May 27, 2020 by zoechi (140 points)
ob-plantuml checks if the content starts with `@start` and if not it adds `@startuml` `@enduml` around the content.

If `@startuml` is not at the beginning of the first line it is not found and added again.
commented Jul 6, 2021 by Philipo98 (120 points)

Hey,
im running into the same problem, but i can't fix it. 
Is there any way to disable the ob-plantuml auto mode?
If i decode URI: 

@startuml
@startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response

Alice -> Bob: Another authentication Request
Alice <-- Bob: another authentication Response
@enduml
@enduml

This comes out. In PNG no Problem but in SVG it generates a second XML TAG.
Even if i don't encode @startuml und @enduml it decodes with two start and end tags.
Encoded: SyfFqhLppCbCJhLIy4ZDoSa70000 Bob->Alice: Hello (without start und end) 

Thanks for any reply :)

commented Jul 6, 2021 by plantuml (265,360 points)
Well, it looks like an issue on ob-plantuml side. This forum is somehow dedicated to the core PlantUML library.

You should probably report this issue to https://github.com/tkf/org-mode/blob/master/lisp/ob-plantuml.el

Sorry about that !
...