Switch from normalized representation to rawsource.

This commit is contained in:
Robert Lehmann 2010-06-30 12:57:26 +02:00
parent 6e9b3c7249
commit 93f2924008

View File

@ -30,7 +30,7 @@ def extract_messages(doctree):
# <field_name>orphan</field_name>
if isinstance(node, nodes.field_name) and node.children[0] == 'orphan':
continue
msg = node.astext().replace('\n', ' ').strip()
msg = node.rawsource.replace('\n', ' ').strip()
# XXX nodes rendering empty are likely a bug in sphinx.addnodes
if msg:
yield node, msg