mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
renderContents as unicode
This commit is contained in:
parent
043223eac6
commit
43d6a53d7b
@ -15,10 +15,7 @@ from calibre.utils.logging import default_log
|
||||
from calibre.ptempfile import TemporaryFile
|
||||
|
||||
def _clean(s):
|
||||
try:
|
||||
return s.replace(u'\u00a0', u' ')
|
||||
except UnicodeDecodeError:
|
||||
return u""
|
||||
return s.replace(u'\u00a0', u' ')
|
||||
|
||||
def _detag(tag):
|
||||
str = u""
|
||||
|
Loading…
x
Reference in New Issue
Block a user