summaryrefslogtreecommitdiff
path: root/sphinx/ext/mathbase.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-09-23 11:03:23 +0200
committerGeorg Brandl <georg@python.org>2011-09-23 11:03:23 +0200
commit4abbe95a9c6b82ec644ea7fc81fd0198edf7831e (patch)
tree370b12cba4f2d19a7405c4efef31c408108def8f /sphinx/ext/mathbase.py
parent25d41d8ed10aed0d8f497679f7426cecb429ac20 (diff)
parent69f7e0768114fde9ccabc4bf7d56f765743612a6 (diff)
downloadsphinx-git-4abbe95a9c6b82ec644ea7fc81fd0198edf7831e.tar.gz
Merge with 1.0
Diffstat (limited to 'sphinx/ext/mathbase.py')
-rw-r--r--sphinx/ext/mathbase.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/ext/mathbase.py b/sphinx/ext/mathbase.py
index 1a2ca6afe..6d080b4ba 100644
--- a/sphinx/ext/mathbase.py
+++ b/sphinx/ext/mathbase.py
@@ -12,6 +12,7 @@
from docutils import nodes, utils
from docutils.parsers.rst import directives
+from sphinx.util.nodes import set_source_info
from sphinx.util.compat import Directive
@@ -72,7 +73,7 @@ class MathDirective(Directive):
node['nowrap'] = 'nowrap' in self.options
node['docname'] = self.state.document.settings.env.docname
ret = [node]
- node.line = self.lineno
+ set_source_info(self, node)
if hasattr(self, 'src'):
node.source = self.src
if node['label']: