mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #366
This commit is contained in:
parent
104ec7cc93
commit
0128e830c5
@ -317,6 +317,8 @@ def entity_to_unicode(match, exceptions=[]):
|
|||||||
ent = match.group(1)
|
ent = match.group(1)
|
||||||
if ent in exceptions:
|
if ent in exceptions:
|
||||||
return '&'+ent+';'
|
return '&'+ent+';'
|
||||||
|
if ent == 'apos':
|
||||||
|
return "'"
|
||||||
if ent.startswith(u'#x'):
|
if ent.startswith(u'#x'):
|
||||||
return unichr(int(ent[2:], 16))
|
return unichr(int(ent[2:], 16))
|
||||||
if ent.startswith(u'#'):
|
if ent.startswith(u'#'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user