Quotes around attribute values
Submitted by sjackman on Fri, 01/20/2012 - 13:10
GraphViz does not output quotes around integers, but does output quotes around floats:
$ nop <<<'graph g { x=2 }'
graph g {
graph [x=2];
}
$ nop <<<'graph g { x=2.5 }'
graph g {
graph [x="2.5"];
}
I'd prefer that it format all numbers similarly and not output quotes around floats. Could this minor discrepancy be resolved?
Thanks,
Shaun
Recent comments
- I like the look of the nodes,
19 hours 45 min ago - If you put the fixedsize
20 hours 9 min ago - If you put the fixedsize
20 hours 10 min ago - Are there some actual examples around?
21 hours 40 min ago - There are two features
22 hours 13 min ago - There is nothing built into
22 hours 24 min ago - I was able to resolve this
2 days 1 hour ago - x11 event bindings
3 days 18 hours ago - One could probable work
3 days 19 hours ago - Would it be possible to
3 days 19 hours ago

Done, as of 23 January.
Done, as of 23 January.
Done, as of 23 January.
To be more explicit, any number that doesn't require quotes as dot input should now be output without quotes. Obviously, if anyone finds a glitch, let us know via a bug report.