From 4bd766bd49a1e7762ec653ae0f32266357fff1ab Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 16 Feb 2010 13:48:03 -0700 Subject: [PATCH] MOBI Output: Remove soft hyphens as the Kindle doesn't support them. Fixes #4887 (Treatment of italics when converting to Mobi) --- src/calibre/ebooks/mobi/writer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/ebooks/mobi/writer.py b/src/calibre/ebooks/mobi/writer.py index c5bcee7e45..8de702a617 100644 --- a/src/calibre/ebooks/mobi/writer.py +++ b/src/calibre/ebooks/mobi/writer.py @@ -310,6 +310,7 @@ class Serializer(object): text = text.replace('&', '&') text = text.replace('<', '<') text = text.replace('>', '>') + text = text.replace(u'\u00AD', '') # Soft-hyphen if quot: text = text.replace('"', '"') self.buffer.write(encode(text))