mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Escape the quotes in the tooltip message
This commit is contained in:
parent
1602e18242
commit
65e8a4a851
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user