MOBI Output: Remove soft hyphens as the Kindle doesn't support them. Fixes #4887 (Treatment of italics when converting to Mobi)

This commit is contained in:
Kovid Goyal 2010-02-16 13:48:03 -07:00
parent f6f87ef47c
commit 4bd766bd49

View file

@ -310,6 +310,7 @@ def serialize_text(self, text, quot=False):
text = text.replace('&', '&')
text = text.replace('<', '&lt;')
text = text.replace('>', '&gt;')
text = text.replace(u'\u00AD', '') # Soft-hyphen
if quot:
text = text.replace('"', '&quot;')
self.buffer.write(encode(text))