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

0 votes
asked Feb 4 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 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 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.
...