mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-28 00:04:29 +01:00
Fix #366
This commit is contained in:
parent
104ec7cc93
commit
0128e830c5
1 changed files with 2 additions and 0 deletions
|
|
@ -317,6 +317,8 @@ def entity_to_unicode(match, exceptions=[]):
|
|||
ent = match.group(1)
|
||||
if ent in exceptions:
|
||||
return '&'+ent+';'
|
||||
if ent == 'apos':
|
||||
return "'"
|
||||
if ent.startswith(u'#x'):
|
||||
return unichr(int(ent[2:], 16))
|
||||
if ent.startswith(u'#'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue