From 42d356c7286746091470bdabd0c76a5887142791 Mon Sep 17 00:00:00 2001 From: Kiryl Date: Thu, 30 Sep 2021 15:03:04 +0300 Subject: [PATCH] fix errors --- src/docx_converter/docx_solver.py | 4 ++-- src/epub_converter/css_reader.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/docx_converter/docx_solver.py b/src/docx_converter/docx_solver.py index 296dc4e..d83417a 100644 --- a/src/docx_converter/docx_solver.py +++ b/src/docx_converter/docx_solver.py @@ -6,8 +6,8 @@ from subprocess import PIPE from threading import Event from bs4 import BeautifulSoup -from html_docx_preprocessor import HTMLDocxPreprocessor -from libra_html2json_converter import LibraHTML2JSONConverter +from src.docx_converter.html_docx_preprocessor import HTMLDocxPreprocessor +from src.docx_converter.libra_html2json_converter import LibraHTML2JSONConverter from src.book_solver import BookSolver diff --git a/src/epub_converter/css_reader.py b/src/epub_converter/css_reader.py index 4f0ce13..0a8f1f3 100644 --- a/src/epub_converter/css_reader.py +++ b/src/epub_converter/css_reader.py @@ -73,7 +73,7 @@ def convert_indents(value): elif has_style_attrs.group(4): value = value.replace(has_style_attrs.group(4), - str(abs(int("".join(filter(str.isdigit, str(has_style_attrs.group(5))))))) + 'px') + str(abs(int("".join(filter(str.isdigit, str(has_style_attrs.group(4))))))) + 'px') return value """ LIVECARTA_STYLE_ATTRS = { css property: value }