Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

label HTML with table not working #129

Open
andresgutgon opened this issue Apr 21, 2017 · 1 comment
Open

label HTML with table not working #129

andresgutgon opened this issue Apr 21, 2017 · 1 comment

Comments

@andresgutgon
Copy link

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:
image

Any idea why this is not working?

@waynr
Copy link

waynr commented May 17, 2017

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants