Please add the diagram source code to SVG file like it is done for PNG files

0 votes
asked Mar 27, 2017 in Closed feature request by PeterBakker (280 points)
PlantUML adds metadata, the parsed code, to PNG files.

Please provide this feature also for SVG files.

1 Answer

0 votes
answered Mar 27, 2017 by plantuml (294,660 points)
selected Mar 29, 2017 by PeterBakker
 
Best answer

It was added as a comment in the SVG file (using <!-- and --!>)

This should be OK in last beta
https://www.dropbox.com/s/koo42q3d9gxw288/plantuml.jar?dl=0
Tell us if it's what you are expecting !

commented Mar 29, 2017 by PeterBakker (280 points)
Thanks, it works as expected :-)
commented Apr 3, 2017 by adrian (120 points)
SVG seems to support this: https://www.w3.org/TR/SVG/extend.html#ForeignNamespaces

This is much better than comments since it can be red by other tools.


Thank you.
...