mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
58268e61c3
commit
f53ac1cff8
@ -321,7 +321,8 @@ class CSSFlattener(object):
|
||||
cssdict['margin-top'] = cssdict['margin-bottom'] = \
|
||||
'%fem'%self.context.insert_blank_line_size
|
||||
indent_size = self.context.remove_paragraph_spacing_indent_size
|
||||
if (self.context.remove_paragraph_spacing and indent_size != 0.0 and
|
||||
keep_indents = indent_size == 0.0 and not self.context.insert_blank_line
|
||||
if (self.context.remove_paragraph_spacing and not keep_indents and
|
||||
cssdict.get('text-align', None) not in ('center', 'right')):
|
||||
cssdict['text-indent'] = "%1.1fem" % indent_size
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user