mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #3865: use of self.env.warn in sphinx extension fails
This commit is contained in:
parent
d06cb0bc2e
commit
9a9a3c6796
1
CHANGES
1
CHANGES
@ -25,6 +25,7 @@ Bugs fixed
|
|||||||
* #3835: sphinx.ext.imgmath fails to convert SVG images if project directory
|
* #3835: sphinx.ext.imgmath fails to convert SVG images if project directory
|
||||||
name contains spaces
|
name contains spaces
|
||||||
* #3850: Fix color handling in make mode's help command
|
* #3850: Fix color handling in make mode's help command
|
||||||
|
* #3865: use of self.env.warn in sphinx extension fails
|
||||||
|
|
||||||
Testing
|
Testing
|
||||||
--------
|
--------
|
||||||
|
@ -300,8 +300,7 @@ class BuildEnvironment(object):
|
|||||||
be emitted instantly, but collected for emitting all warnings after
|
be emitted instantly, but collected for emitting all warnings after
|
||||||
the update of the environment.
|
the update of the environment.
|
||||||
"""
|
"""
|
||||||
# strange argument order is due to backwards compatibility
|
self.app.warn(msg, location=(docname, lineno), **kwargs)
|
||||||
self._warnfunc(msg, (docname, lineno), **kwargs)
|
|
||||||
|
|
||||||
def warn_node(self, msg, node, **kwargs):
|
def warn_node(self, msg, node, **kwargs):
|
||||||
# type: (unicode, nodes.Node, Any) -> None
|
# type: (unicode, nodes.Node, Any) -> None
|
||||||
|
Loading…
Reference in New Issue
Block a user