mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #897 ('--line-spacing' option needed)
This commit is contained in:
parent
280561dc2b
commit
cff96e56a9
@ -1327,7 +1327,7 @@ class HTMLConverter(object, LoggingInterface):
|
||||
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…
x
Reference in New Issue
Block a user