From 7b5c69278771f06736604e3a4877c76736a44b2d Mon Sep 17 00:00:00 2001 From: Josip Date: Thu, 30 Jul 2015 12:06:27 +0200 Subject: [PATCH] 8766: GraphViz does not seem to like double-quotes in Given names --- gramps/plugins/graph/gvhourglass.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/plugins/graph/gvhourglass.py b/gramps/plugins/graph/gvhourglass.py index c3cca64ab..22016bf17 100644 --- a/gramps/plugins/graph/gvhourglass.py +++ b/gramps/plugins/graph/gvhourglass.py @@ -204,6 +204,8 @@ class HourGlassReport(Report): label = "%s (%s)\\n(%s - %s)" % (name, p_id, birth, death) elif self.includeid == 2: # own line label = "%s \\n(%s - %s)\\n(%s)" % (name, birth, death, p_id) + # non html label is enclosed by "" so escape other " + label = label.replace('"', '\\\"') (shape, style, color, fill) = self.get_gender_style(person) self.doc.add_node(p_id, label, shape, color, style, fill)