X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/2429c45a7e3b8e3ef24794b9c982ffcf121acdbd..9c32ad2925b2d8359eb888c966a2faac8d94307d:/librarian/epub.py diff --git a/librarian/epub.py b/librarian/epub.py index 6a2b3c5..81dcb6e 100644 --- a/librarian/epub.py +++ b/librarian/epub.py @@ -78,6 +78,7 @@ def replace_characters(node): def replace_chars(text): if text is None: return None + #text = re.sub(r"(?<=\s\w)\s+", u"\u00a0", text) #fix for hanging single letter conjunctions – for future use. return text.replace(u"\ufeff", u"")\ .replace("---", u"\u2014")\ .replace("--", u"\u2013")\