pydot / pydot-ng

Python interface to Graphviz's Dot language compatible with Python 2 nad Python 3
MIT License
23 stars 10 forks source link

[72] Quotes included in the node's name #12

Open prmtl opened 9 years ago

prmtl commented 9 years ago

Reported by wod...@gmail.com, 2012-05-07T15:30:05Z

What steps will reproduce the problem?

1) Create a dot file with lines:

  "testnode"
  testnode 

2) call get_nodes()

What is the expected output? What do you see instead?

I would expect one node called 'testnode'. Not two - 'testnode' and '"testnode"' (quoted). Quotes should not be included in the names.

What version of the product are you using? On what operating system?

pydot-1.0.28

Possibly associated with Issue 66.

Dot spec. states: 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".

http://www.graphviz.org/content/dot-language From: https://code.google.com/p/pydot/issues/detail?id=72