forked from LiveCarta/BookConverter
epub converter: small fix
This commit is contained in:
@@ -3,8 +3,9 @@ import os
|
|||||||
import pathlib
|
import pathlib
|
||||||
import re
|
import re
|
||||||
from shutil import copyfile
|
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
|
from livecarta_config import LawCartaConfig, BookLogger, BookStatusWrapper
|
||||||
|
|
||||||
@@ -675,7 +676,7 @@ class HTMLPreprocessor:
|
|||||||
|
|
||||||
self._process_headings()
|
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()
|
self._process_lists()
|
||||||
# delete text before table of content if exists
|
# delete text before table of content if exists
|
||||||
|
|||||||
Reference in New Issue
Block a user