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

@ -1,3 +1,7 @@
2007-12-27 Brian Matherly <brian@gramps-project.org>
* src/ReportBase/_GraphvizReportDialog.py:
* src/plugins/GVRelGraph.py: fix thumbnail images and HTML output.
2007-12-27 Brian Matherly <brian@gramps-project.org> 2007-12-27 Brian Matherly <brian@gramps-project.org>
* src/ReportBase/_GraphvizReportDialog.py: Fix Graphviz generated PDF. * src/ReportBase/_GraphvizReportDialog.py: Fix Graphviz generated PDF.

View File

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

View File

@ -220,9 +220,6 @@ class RelGraphReport(Report):
dirpath = dirpath.lower() dirpath = dirpath.lower()
url = "%s/%s.html" % (dirpath,h) url = "%s/%s.html" % (dirpath,h)
if self.bUseHtmlOutput:
label = '<%s>' % label
self.doc.add_node(p_id,label,shape,color,style,fill) self.doc.add_node(p_id,label,shape,color,style,fill)
# Output families where person is a parent # Output families where person is a parent