epub converter: small fix

This commit is contained in:
shirshasa
2021-09-06 18:38:14 +03:00
parent 871dd49b74
commit 82d51f93df

View File

@@ -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