From 2e6e13e166bda02c69b915b8b70032ff685c31f7 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Mon, 14 Sep 2015 16:42:19 -0700 Subject: [PATCH] 8930: allow hyphenated gramps-id in Graphviz reports --- gramps/gen/plug/docgen/graphdoc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/gen/plug/docgen/graphdoc.py b/gramps/gen/plug/docgen/graphdoc.py index 28ed7dc86..4f9b0d574 100644 --- a/gramps/gen/plug/docgen/graphdoc.py +++ b/gramps/gen/plug/docgen/graphdoc.py @@ -525,7 +525,7 @@ class GVDocBase(BaseDoc, GVDoc): text += ' URL="%s"' % url 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=""): """ @@ -533,7 +533,7 @@ class GVDocBase(BaseDoc, GVDoc): Implements GVDocBase.add_link(). """ - self.write(' %s -> %s' % (id1, id2)) + self.write(' "%s" -> "%s"' % (id1, id2)) if style or head or tail: self.write(' [')