From 0d098f19011979429dad90a8a6b5b263c8903f9e Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Mon, 14 Sep 2015 16:43:13 -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 3e4cd8fd3..38baaedc9 100644 --- a/gramps/gen/plug/docgen/graphdoc.py +++ b/gramps/gen/plug/docgen/graphdoc.py @@ -521,7 +521,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=""): """ @@ -529,7 +529,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(' [')