fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vendor cover change
[librarian.git]
/
librarian
/
epub.py
diff --git
a/librarian/epub.py
b/librarian/epub.py
index
a615b7e
..
0f23923
100644
(file)
--- a/
librarian/epub.py
+++ b/
librarian/epub.py
@@
-84,6
+84,10
@@
def replace_characters(node):
.replace(",,", u"\u201E")\
.replace('"', u"\u201D")\
.replace("'", u"\u2019")
.replace(",,", u"\u201E")\
.replace('"', u"\u201D")\
.replace("'", u"\u2019")
+ if node.tag in ('uwaga', 'extra'):
+ t = node.tail
+ node.clear()
+ node.tail = t
node.text = replace_chars(node.text)
node.tail = replace_chars(node.tail)
for child in node:
node.text = replace_chars(node.text)
node.tail = replace_chars(node.tail)
for child in node: