mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
MOBI Output: Fix crash when CSS contains invalid font size entries
This commit is contained in:
parent
133d1d761b
commit
5ac7ff5bf2
@ -365,6 +365,7 @@ class Style(object):
|
|||||||
@property
|
@property
|
||||||
def fontSize(self):
|
def fontSize(self):
|
||||||
def normalize_fontsize(value, base):
|
def normalize_fontsize(value, base):
|
||||||
|
value = value.replace('"', '').replace("'", '')
|
||||||
result = None
|
result = None
|
||||||
factor = None
|
factor = None
|
||||||
if value == 'inherit':
|
if value == 'inherit':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user