diff options
author | Michael Droettboom <mdboom@gmail.com> | 2013-04-03 11:47:11 -0400 |
---|---|---|
committer | Michael Droettboom <mdboom@gmail.com> | 2013-04-03 11:47:11 -0400 |
commit | 442dec7f7a82e555f50471ebd2dc98b3694ccafe (patch) | |
tree | 1ad3d3ffcf32b2571e77335254d88313ebdca432 | |
parent | eb72dc6c9a2ca89e839d714f13c9cd6e83015e42 (diff) | |
download | sphinx-442dec7f7a82e555f50471ebd2dc98b3694ccafe.tar.gz |
Escape the quotes in the tooltip message
-rw-r--r-- | sphinx/ext/inheritance_diagram.py | 1 |
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))) |