diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-03 00:43:39 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-03 01:11:06 +0900 |
commit | fd73a169c7abe649aab2fcf12d192f44822bbef2 (patch) | |
tree | 5609270523a017b24181670103d5f23d4db2688c /sphinx/directives/patches.py | |
parent | 8068cef267d771cd933316ba93b13665e8282c9d (diff) | |
download | sphinx-git-fd73a169c7abe649aab2fcf12d192f44822bbef2.tar.gz |
Fix annotations (minor fixes)
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) |