X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/e2bc69b731434e6929686637ba4cf296632138e2..12266a4397d9e344b7f95a19edc4a8df7cd5f9f0:/librarian/epub.py?ds=inline 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: