Fix thumbnail images and HTML labels for relationship graph (Graphviz).

svn: r9604
This commit is contained in:
Brian Matherly
2007-12-27 22:23:40 +00:00
parent 2faff1abfb
commit 935f32acff
3 changed files with 10 additions and 4 deletions

View File

@@ -214,7 +214,12 @@ class GVDocBase(BaseDoc.BaseDoc,BaseDoc.GVDoc):
Implementes BaseDoc.GVDoc.add_node().
"""
line = ' "%s" [' % id
line += 'label="%s"' % label
if label.startswith("<"):
# This must be HTML
line += 'label=<%s>' % label
else:
line += 'label="%s"' % label
if shape:
line += ', shape="%s"' % shape