X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/e2bc69b731434e6929686637ba4cf296632138e2..e868b7e6511dfbb89e5a9dd69bbb7ef13c42620a:/librarian/epub.py?ds=sidebyside diff --git a/librarian/epub.py b/librarian/epub.py index a615b7e..0f23923 100644 --- 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") + 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: