Commits

Georg Brandl  committed 6fd0bad

Fix for docutils versions without directive.src attribute.

  • Participants
  • Parent commits b228d3c

Comments (0)

Files changed (1)

File sphinx/ext/mathbase.py

         node['docname'] = self.state.document.settings.env.docname
         ret = [node]
         node.line = self.lineno
-        node.source = self.src
+        if hasattr(self, 'src'):
+            node.source = self.src
         if node['label']:
             tnode = nodes.target('', '', ids=['equation-' + node['label']])
             self.state.document.note_explicit_target(tnode)