From 3615220e78b96f6c29a1d4e7c580904ecab204f7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Robert=20B=C5=82aut?= Date: Thu, 30 Jan 2014 10:39:34 +0100 Subject: [PATCH] [epub, mobi] fix for hanging single letter conjunctions - currenty disabled for future use. --- librarian/epub.py | 1 + 1 file changed, 1 insertion(+) 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")\ -- 2.20.1