mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-30 10:35:20 -04:00
EPUB Output:Replace non breaking hyphens with ordinary hyphens as the default fonts that come with ADE don't suport them.
This commit is contained in:
@@ -285,8 +285,10 @@ class EPUBOutput(OutputFormatPlugin):
|
||||
for elem in root.iterdescendants():
|
||||
if getattr(elem, 'text', False):
|
||||
elem.text = special_chars.sub('', elem.text)
|
||||
elem.text = elem.text.replace(u'\u2011', '-')
|
||||
if getattr(elem, 'tail', False):
|
||||
elem.tail = special_chars.sub('', elem.tail)
|
||||
elem.tail = elem.tail.replace(u'\u2011', '-')
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user