mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Switch from normalized representation to rawsource.
This commit is contained in:
parent
6e9b3c7249
commit
93f2924008
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user