mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #589
This commit is contained in:
parent
96b1500891
commit
0f8924b29e
@ -1277,6 +1277,8 @@ class HTMLConverter(object):
|
|||||||
indent = self.book.defaultTextStyle.attrs['parindent']
|
indent = self.book.defaultTextStyle.attrs['parindent']
|
||||||
if tag_css.has_key('text-indent'):
|
if tag_css.has_key('text-indent'):
|
||||||
bl = str(self.current_block.blockStyle.attrs['blockwidth'])+'px'
|
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(str(tag_css['text-indent']), pts=True, base_length=bl)
|
||||||
if not indent:
|
if not indent:
|
||||||
indent = 0
|
indent = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user