Ignored translator errors in non-paragraphs for now.

This commit is contained in:
Robert Lehmann 2010-11-13 12:50:52 +01:00
parent b151aa56e1
commit f411dbce23

View File

@ -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