summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Droettboom <mdboom@gmail.com>2013-04-03 11:47:11 -0400
committerMichael Droettboom <mdboom@gmail.com>2013-04-03 11:47:11 -0400
commit442dec7f7a82e555f50471ebd2dc98b3694ccafe (patch)
tree1ad3d3ffcf32b2571e77335254d88313ebdca432
parenteb72dc6c9a2ca89e839d714f13c9cd6e83015e42 (diff)
downloadsphinx-442dec7f7a82e555f50471ebd2dc98b3694ccafe.tar.gz
Escape the quotes in the tooltip message
-rw-r--r--sphinx/ext/inheritance_diagram.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/ext/inheritance_diagram.py b/sphinx/ext/inheritance_diagram.py
index 6499e078..9d17e73e 100644
--- a/sphinx/ext/inheritance_diagram.py
+++ b/sphinx/ext/inheritance_diagram.py
@@ -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)))