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 @@ class Serializer(object):
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))