mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
fix bug for the change c53fa4b
This commit is contained in:
parent
c773692366
commit
67dd1c0d03
@ -242,6 +242,11 @@ class Locale(Transform):
|
||||
msgstr += '\n\n dummy literal'
|
||||
# dummy literal node will discard by 'patch = patch[0]'
|
||||
|
||||
# literalblock need literal block notation to avoid it become
|
||||
# paragraph.
|
||||
if isinstance(node, LITERAL_TYPE_NODES):
|
||||
msgstr = '::\n\n' + indent(msgstr, ' '*3)
|
||||
|
||||
patch = new_document(source, settings)
|
||||
CustomLocaleReporter(node.source, node.line).set_reporter(patch)
|
||||
parser.parse(msgstr, patch)
|
||||
|
Loading…
Reference in New Issue
Block a user