Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0e03ff2

Browse files
committed
Merge pull request #7006 from tacaswell/fix_bad_sphinx_merge
FIX: sphinx 1.4.0 details
1 parent b3d33ef commit 0e03ff2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/matplotlib/sphinxext/only_directives.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,12 @@ def visit_ignore(self, node):
6464
def depart_ignore(self, node):
6565
node.children = []
6666

67-
app.add_node(html_only, html=(visit_perform, depart_perform))
68-
app.add_node(html_only, latex=(visit_ignore, depart_ignore))
69-
app.add_node(latex_only, latex=(visit_perform, depart_perform))
70-
app.add_node(latex_only, html=(visit_ignore, depart_ignore))
67+
app.add_node(html_only,
68+
html=(visit_perform, depart_perform),
69+
latex=(visit_ignore, depart_ignore))
70+
app.add_node(latex_only,
71+
latex=(visit_perform, depart_perform),
72+
html=(visit_ignore, depart_ignore))
7173

7274
metadata = {'parallel_read_safe': True, 'parallel_write_safe': True}
7375
return metadata

0 commit comments

Comments
 (0)