This commit is contained in:
Kovid Goyal 2008-03-20 20:26:55 +00:00
parent 96b1500891
commit 0f8924b29e

View File

@ -1277,6 +1277,8 @@ class HTMLConverter(object):
indent = self.book.defaultTextStyle.attrs['parindent']
if tag_css.has_key('text-indent'):
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)
if not indent:
indent = 0