diff options
| author | Georg Brandl <georg@python.org> | 2011-09-23 09:46:24 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2011-09-23 09:46:24 +0200 |
| commit | 6639612d9c5d7919bebce9790a2e3fbbfb6d3414 (patch) | |
| tree | f139be5f44c251ed99b0d2a43afbd047d8d8f279 /sphinx/ext/mathbase.py | |
| parent | 600b915d287a12ffdd68a29e15f9f10ff9461a67 (diff) | |
| download | sphinx-6639612d9c5d7919bebce9790a2e3fbbfb6d3414.tar.gz | |
Fix #648: Fix line numbers reported in warnings about undefined references.
Diffstat (limited to 'sphinx/ext/mathbase.py')
| -rw-r--r-- | sphinx/ext/mathbase.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/ext/mathbase.py b/sphinx/ext/mathbase.py index e7ea82d7..fc849584 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 @@ -69,7 +70,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']: |
