mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-25 11:35:55 +01:00
Merged upstream changes
This commit is contained in:
commit
c9f0d1591d
1 changed files with 1 additions and 1 deletions
|
|
@ -1327,7 +1327,7 @@ def text_properties(self, tag_css):
|
|||
bls, ls = int(self.book.defaultTextStyle.attrs['baselineskip']), \
|
||||
int(self.book.defaultTextStyle.attrs['linespace'])
|
||||
try: # See if line-height is a unitless number
|
||||
val = int(float(tag_css['line-height'].strip()) * (bls+ls))
|
||||
val = int(float(tag_css['line-height'].strip()) * (ls))
|
||||
fp['linespace'] = val
|
||||
except ValueError:
|
||||
val = self.unit_convert(tag_css['line-height'], pts=True, base_length='1pt')
|
||||
|
|
|
|||
Loading…
Reference in a new issue