mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-04 08:23:08 +02:00
Ignore line height of 1
This commit is contained in:
parent
d8a896616a
commit
aa2aa3d2ef
1 changed files with 4 additions and 1 deletions
|
|
@ -271,7 +271,10 @@ def css(self):
|
|||
if val is not inherit:
|
||||
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)
|
||||
if val is not inherit:
|
||||
c[x.replace('_', '-')] = val
|
||||
|
|
|
|||
Loading…
Reference in a new issue