fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
strip BOM
[librarian.git]
/
librarian
/
epub.py
diff --git
a/librarian/epub.py
b/librarian/epub.py
index
e25ce8f
..
3bdd1cd
100644
(file)
--- a/
librarian/epub.py
+++ b/
librarian/epub.py
@@
-82,7
+82,8
@@
def replace_characters(node):
def replace_chars(text):
if text is None:
return None
- return text.replace("---", u"\u2014")\
+ return text.replace(u"\ufeff", u"")\
+ .replace("---", u"\u2014")\
.replace("--", u"\u2013")\
.replace(",,", u"\u201E")\
.replace('"', u"\u201D")\