mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
f6f87ef47c
commit
4bd766bd49
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user