Escape the quotes in the tooltip message

This commit is contained in:
Michael Droettboom 2013-04-03 11:47:11 -04:00
parent 1602e18242
commit 65e8a4a851

View File

@ -250,6 +250,7 @@ class InheritanceGraph(object):
if cls.__doc__:
doc = cls.__doc__.strip().split("\n")[0]
if doc:
doc = doc.replace('"', '\"')
this_node_attrs['tooltip'] = '"%s"' % doc
res.append(' "%s" [%s];\n' %
(name, self._format_node_attrs(this_node_attrs)))