From 82d51f93dfa6ef12715dbaf5818bb86ed2dd1324 Mon Sep 17 00:00:00 2001 From: shirshasa Date: Mon, 6 Sep 2021 18:38:14 +0300 Subject: [PATCH] epub converter: small fix --- src/html_preprocessor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/html_preprocessor.py b/src/html_preprocessor.py index 27bcf3b..5af2226 100644 --- a/src/html_preprocessor.py +++ b/src/html_preprocessor.py @@ -3,8 +3,9 @@ import os import pathlib import re from shutil import copyfile +from typing import List -from bs4 import BeautifulSoup, NavigableString +from bs4 import BeautifulSoup, NavigableString, Tag from livecarta_config import LawCartaConfig, BookLogger, BookStatusWrapper @@ -675,7 +676,7 @@ class HTMLPreprocessor: self._process_headings() - self.content = self.body_tag.find_all(recursive=False) + self.content: List[Tag] = self.body_tag.find_all(recursive=False) self._process_lists() # delete text before table of content if exists