mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Ignored translator errors in non-paragraphs for now.
This commit is contained in:
parent
b151aa56e1
commit
f411dbce23
@ -215,7 +215,9 @@ class Locale(Transform):
|
||||
continue
|
||||
parser.parse(msgstr, patch)
|
||||
patch = patch[0]
|
||||
assert isinstance(patch, nodes.paragraph)
|
||||
#XXX doctest and other block markup
|
||||
if not isinstance(patch, nodes.paragraph):
|
||||
continue # skip for now
|
||||
for child in patch.children: # update leaves
|
||||
child.parent = node
|
||||
node.children = patch.children
|
||||
|
Loading…
Reference in New Issue
Block a user