mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
2515bd0f4e
commit
945855611a
@ -527,7 +527,7 @@ def entity_to_unicode(match, exceptions=[], encoding='cp1252',
|
|||||||
ent = match.group(1)
|
ent = match.group(1)
|
||||||
if ent in exceptions:
|
if ent in exceptions:
|
||||||
return '&'+ent+';'
|
return '&'+ent+';'
|
||||||
if ent == 'apos':
|
if ent in {'apos', 'squot'}: # squot is generated by some broken CMS software
|
||||||
return check("'")
|
return check("'")
|
||||||
if ent == 'hellips':
|
if ent == 'hellips':
|
||||||
ent = 'hellip'
|
ent = 'hellip'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user