mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ignore line height of 1
This commit is contained in:
parent
d8a896616a
commit
aa2aa3d2ef
@ -271,7 +271,10 @@ class ParagraphStyle(object):
|
|||||||
if val is not inherit:
|
if val is not inherit:
|
||||||
c['margin-%s' % edge] = val
|
c['margin-%s' % edge] = val
|
||||||
|
|
||||||
for x in ('text_indent', 'text_align', 'line_height', 'background_color'):
|
if self.line_height not in {inherit, '1'}:
|
||||||
|
c['line-height'] = self.line_height
|
||||||
|
|
||||||
|
for x in ('text_indent', 'text_align', 'background_color'):
|
||||||
val = getattr(self, x)
|
val = getattr(self, x)
|
||||||
if val is not inherit:
|
if val is not inherit:
|
||||||
c[x.replace('_', '-')] = val
|
c[x.replace('_', '-')] = val
|
||||||
|
Loading…
x
Reference in New Issue
Block a user