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 }