From: Marcin Koziej Date: Wed, 2 Jan 2013 11:44:14 +0000 (+0100) Subject: Slight change in api - returning one value from element handler will mean not to... X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/e99963a534b529840f041cfa8f5e4ab1f030f49d Slight change in api - returning one value from element handler will mean not to process it's children (just as returning none) --- diff --git a/librarian/xmlutils.py b/librarian/xmlutils.py index 523ad8b..839ae89 100644 --- a/librarian/xmlutils.py +++ b/librarian/xmlutils.py @@ -94,8 +94,7 @@ class Xmill(object): return [] else: if not isinstance(vals, tuple): - pre = [vals] - post = [] + return [vals] else: pre = [vals[0], element.text] post = [vals[1]]