diff options
author | Georg Brandl <georg@python.org> | 2014-03-02 08:50:10 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-03-02 08:50:10 +0100 |
commit | 85ddf03f45f79a0bc7d20fcceba0057a72452fd1 (patch) | |
tree | 49f519acf9c000d0fa4deefc94f7ac45498f7ac0 /sphinx/util/nodes.py | |
parent | db0f7ccc705b37617faf7c6139e96dc826dfdb22 (diff) | |
parent | cae4910527c549e83b8b63e88c90324113846f70 (diff) | |
download | sphinx-git-85ddf03f45f79a0bc7d20fcceba0057a72452fd1.tar.gz |
merge with stable
Diffstat (limited to 'sphinx/util/nodes.py')
-rw-r--r-- | sphinx/util/nodes.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/util/nodes.py b/sphinx/util/nodes.py index ca8fa2ac6..ed7abe865 100644 --- a/sphinx/util/nodes.py +++ b/sphinx/util/nodes.py @@ -58,7 +58,8 @@ def extract_messages(doctree): # this issue was filed to Docutils tracker: # sf.net/tracker/?func=detail&aid=3599485&group_id=38414&atid=422032 # sourceforge.net/p/docutils/patches/108/ - if isinstance(node, (nodes.caption, nodes.title, nodes.rubric)) and not node.source: + if isinstance(node, (nodes.caption, nodes.title, nodes.rubric)) \ + and not node.source: node.source = find_source_node(node) node.line = 0 #need fix docutils to get `node.line` |