mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 16:03:36 +02: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
1 changed files with 1 additions and 0 deletions
|
|
@ -310,6 +310,7 @@ def serialize_text(self, text, quot=False):
|
|||
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…
Reference in a new issue