Ruby-Graphviz
Ruby-Graphviz copied to clipboard
label HTML with table not working
Hi, I'm running example73.rb but adding this line:
g.add_nodes "TABLE_EXAMPLE", label: '<TABLE><TR><TD>Hello World</TD></TR></TABLE>'
The result is not parsed as an HTML table:
Any idea why this is not working?
@andresgutgon probably because you didn't include the enclosing angle brackets in the label string. Try:
g.add_nodes "TABLE_EXAMPLE", label: '<<TABLE><TR><TD>Hello World</TD></TR></TABLE>>'
See the graphviz docs for more info: http://graphviz.org/content/node-shapes#html