diff options
Diffstat (limited to 'sphinx/directives/patches.py')
-rw-r--r-- | sphinx/directives/patches.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/directives/patches.py b/sphinx/directives/patches.py index db59b6968..e4088af07 100644 --- a/sphinx/directives/patches.py +++ b/sphinx/directives/patches.py @@ -129,7 +129,7 @@ class MathDirective(SphinxDirective): if self.arguments and self.arguments[0]: latex = self.arguments[0] + '\n\n' + latex node = nodes.math_block(latex, latex, - docname=self.state.document.settings.env.docname, + docname=self.env.docname, number=self.options.get('name'), label=self.options.get('label'), nowrap='nowrap' in self.options) |