diff --git a/src/docx_converter/libre_html2json_converter.py b/src/docx_converter/libre_html2json_converter.py index 45522da..0cd92fa 100644 --- a/src/docx_converter/libre_html2json_converter.py +++ b/src/docx_converter/libre_html2json_converter.py @@ -107,10 +107,7 @@ class LibreHTML2JSONConverter: def convert_to_dict(self): """Function which convert list of html nodes to appropriate json structure.""" - json_strc = [] - ind = 0 - ch_num = 0 - ch_amt = 0 + json_strc, ind, ch_num, ch_amt = [], 0, 0, 0 try: while ind < len(self.content): diff --git a/src/epub_converter/footnotes_processing.py b/src/epub_converter/footnotes_processing.py index d9840f3..ef2eac0 100644 --- a/src/epub_converter/footnotes_processing.py +++ b/src/epub_converter/footnotes_processing.py @@ -84,4 +84,4 @@ def preprocess_footnotes(source_html_tag: Tag, href2soup_html: dict = None, note footnote_tag = footnote_tag.find( attrs={"role": "doc-backlink"}) or footnote_tag new_footnotes_tags.append(footnote_tag) - return footnotes, new_noterefs_tags, new_footnotes_tags \ No newline at end of file + return footnotes, new_noterefs_tags, new_footnotes_tags diff --git a/src/epub_converter/image_processing.py b/src/epub_converter/image_processing.py index 950bbdd..aefa24d 100644 --- a/src/epub_converter/image_processing.py +++ b/src/epub_converter/image_processing.py @@ -64,4 +64,4 @@ def update_images_src_links(body_tag: BeautifulSoup, del img.attrs["height"] if img.attrs.get("style"): del img.attrs["style"] - return path2aws_path \ No newline at end of file + return path2aws_path