From f7f660c9691fa4a393e8e4b1f699277657f9802d Mon Sep 17 00:00:00 2001 From: shirshasa Date: Mon, 22 Mar 2021 10:35:19 +0300 Subject: [PATCH] converter fix: pt to px --- src/html_preprocessor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/html_preprocessor.py b/src/html_preprocessor.py index 6b94343..b76e739 100644 --- a/src/html_preprocessor.py +++ b/src/html_preprocessor.py @@ -49,7 +49,7 @@ class HTMLPreprocessor: @classmethod def convert_pt_to_px(cls, value): - value = int(value) + value = float(value) if value == LawCartaConfig.WORD_DEFAULT_FONT_SIZE: return LawCartaConfig.LAWCARTA_DEFAULT_FONT_SIZE else: