X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/0d3fb261fc396c2f8f66018ff923bf202e869b35..e0e7693096469f5952eef1c5847dabc9cf797f70:/librarian/xmlutils.py diff --git a/librarian/xmlutils.py b/librarian/xmlutils.py index 839ae89..a3f9df9 100644 --- a/librarian/xmlutils.py +++ b/librarian/xmlutils.py @@ -94,13 +94,10 @@ class Xmill(object): return [] else: if not isinstance(vals, tuple): - return [vals] + return [vals, element.tail] else: pre = [vals[0], element.text] - post = [vals[1]] - - if element.tail: - post.append(element.tail) + post = [vals[1], element.tail] out = pre + [self._handle_element(child) for child in element] + post finally: