Slight change in api - returning one value from element handler will mean not to...
authorMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Wed, 2 Jan 2013 11:44:14 +0000 (12:44 +0100)
committerMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Wed, 2 Jan 2013 11:44:14 +0000 (12:44 +0100)
librarian/xmlutils.py

index 523ad8b..839ae89 100644 (file)
@@ -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]]