forked from LiveCarta/BookConverter
converter fix: pt to px
This commit is contained in:
@@ -49,7 +49,7 @@ class HTMLPreprocessor:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def convert_pt_to_px(cls, value):
|
def convert_pt_to_px(cls, value):
|
||||||
value = int(value)
|
value = float(value)
|
||||||
if value == LawCartaConfig.WORD_DEFAULT_FONT_SIZE:
|
if value == LawCartaConfig.WORD_DEFAULT_FONT_SIZE:
|
||||||
return LawCartaConfig.LAWCARTA_DEFAULT_FONT_SIZE
|
return LawCartaConfig.LAWCARTA_DEFAULT_FONT_SIZE
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user