mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1180 (Error converting accented characters)
This commit is contained in:
parent
dd9a076b21
commit
0c976d173d
@ -1316,7 +1316,7 @@ class HTMLConverter(object, LoggingInterface):
|
||||
bl = str(self.current_block.blockStyle.attrs['blockwidth'])+'px'
|
||||
if 'em' in tag_css['text-indent']:
|
||||
bl = '10pt'
|
||||
indent = self.unit_convert(str(tag_css['text-indent']), pts=True, base_length=bl)
|
||||
indent = self.unit_convert(unicode(tag_css['text-indent']), pts=True, base_length=bl)
|
||||
if not indent:
|
||||
indent = 0
|
||||
if indent > 0 and indent < 10 * self.minimum_indent:
|
||||
|
Loading…
x
Reference in New Issue
Block a user