fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
some epub/mobi fixes
[librarian.git]
/
librarian
/
parser.py
diff --git
a/librarian/parser.py
b/librarian/parser.py
index
4cdaa79
..
afc4f1a
100644
(file)
--- a/
librarian/parser.py
+++ b/
librarian/parser.py
@@
-61,7
+61,7
@@
class WLDocument(object):
try:
parser = etree.XMLParser(remove_blank_text=False)
- tree = etree.parse(StringIO(data), parser)
+ tree = etree.parse(StringIO(data
.encode('utf-8')
), parser)
if swap_endlines:
cls.swap_endlines(tree)