I’m trying to make an svg from an inline stdin (like in the documentation) :
C:UsersVERBOSEDesktop>echo 'digraph { a -> b }' | dot -Tsvg > output.svg
Surprisingly, this gives two files :
The output.svg
in the browser shows : This XML file does not appear to have any style information associated with it. The document tree is shown below.
And why I open the b
file in notepad, I see this : 'digraph { a - }'
I’m not a windows expert but I think it has to do with the >
that is not espcaped.
An important detail, when I create a dot file manually and run the command below, it works :
C:UsersVERBOSEDesktop>dot file.dot -Tsvg -o output2.svg
Can you guys propose a solution ?