glejeune / Ruby-Graphviz

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

Escape not quite right #9

Closed harukizaemon closed 14 years ago

harukizaemon commented 14 years ago

The escaping code thinks that a colon ":" is a valid dot identifier when it isn't.

(fantastic library btw!)

glejeune commented 14 years ago

Could you send me an example ?

Thanks

Greg

harukizaemon commented 14 years ago

I had an element with the name (programatically constructed) A:B:C. The generated graph looked like: http://gist.github.com/291974#file_gistfile1.txt but should have been http://gist.github.com/291974#file_gistfile2.txt

Thanks, Simon

glejeune commented 14 years ago

Ok, thanks, i made the correction.

glejeune commented 14 years ago

Hum... in fact, colon (:) is a valid dot identifier (see sample08.rb or sample20.rb). So to do what you want, you need to use :label (see sample32.rb)

Greg

glejeune commented 14 years ago

Sorry... I reopen this issue. I will test a solution : by default, a node will have his label set with the node ID.

harukizaemon commented 14 years ago

OK, that sounds good. Thanks for your help!