8930: allow hyphenated gramps-id in Graphviz reports

This commit is contained in:
Paul Franklin 2015-09-14 16:43:13 -07:00
parent bbc1cbe2ff
commit 0d098f1901

View File

@ -521,7 +521,7 @@ class GVDocBase(BaseDoc, GVDoc):
text += ' URL="%s"' % url text += ' URL="%s"' % url
text += " ]" text += " ]"
self.write(' %s %s;\n' % (node_id, text)) self.write(' "%s" %s;\n' % (node_id, text))
def add_link(self, id1, id2, style="", head="", tail="", comment=""): def add_link(self, id1, id2, style="", head="", tail="", comment=""):
""" """
@ -529,7 +529,7 @@ class GVDocBase(BaseDoc, GVDoc):
Implements GVDocBase.add_link(). Implements GVDocBase.add_link().
""" """
self.write(' %s -> %s' % (id1, id2)) self.write(' "%s" -> "%s"' % (id1, id2))
if style or head or tail: if style or head or tail:
self.write(' [') self.write(' [')