fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
excercises: uporzadkuj, zastap, luki
[librarian.git]
/
librarian
/
xmlutils.py
diff --git
a/librarian/xmlutils.py
b/librarian/xmlutils.py
index
523ad8b
..
a3f9df9
100644
(file)
--- a/
librarian/xmlutils.py
+++ b/
librarian/xmlutils.py
@@
-94,14
+94,10
@@
class Xmill(object):
return []
else:
if not isinstance(vals, tuple):
return []
else:
if not isinstance(vals, tuple):
- pre = [vals]
- post = []
+ return [vals, element.tail]
else:
pre = [vals[0], element.text]
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:
out = pre + [self._handle_element(child) for child in element] + post
finally: