X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/a7133c06fd9738c11a2bf60b4fc09365d15da1d7..f921a036ff55ff3a43ad2c93c8d8eb808fd54724:/librarian/xmlutils.py diff --git a/librarian/xmlutils.py b/librarian/xmlutils.py index 819c9a4..37a719b 100644 --- a/librarian/xmlutils.py +++ b/librarian/xmlutils.py @@ -96,13 +96,13 @@ class Xmill(object): if handler is None: pre = [self.filter_text(element.text)] - post = [] + post = [self.filter_text(element.tail)] else: vals = handler(element) # depending on number of returned values, vals can be None, a value, or a tuple. # how poorly designed is that? 9 lines below are needed just to unpack this. if vals is None: - return [] + return [self.filter_text(element.tail)] else: if not isinstance(vals, tuple): return [vals, self.filter_text(element.tail)]