glejeune / Ruby-Graphviz

[MIRROR] Ruby interface to the GraphViz graphing tool
https://gitlab.com/glejeune/ruby-graphviz
Other
609 stars 116 forks source link

Node IDs are not escaped for reserved keywords #87

Closed joaomsa closed 10 years ago

joaomsa commented 10 years ago

From the DOT specification: http://www.graphviz.org/doc/info/lang.html

The keywords node, edge, graph, digraph, subgraph, and strict are case-independent. Note also that the allowed compass point values are not keywords ... An ID is just a string; the lack of quote characters in the first two forms is just for simplicity. There is no semantic difference between abc_2 and "abc_2", or between 2.34 and "2.34". Obviously, to use a keyword as an ID, it must be quoted.

Currently dot fails with a syntax error when using reserved keywords as node IDs