epub converter: bug fix

This commit is contained in:
shirshasa
2021-07-06 10:04:53 +03:00
parent ee1d87ad8c
commit 0801645de2
2 changed files with 2 additions and 0 deletions

View File

@@ -297,6 +297,7 @@ def add_inline_style_to_html_soup(soup1, css_text):
html_with_inline_style = transform(str(soup1), css_text=css_text,
remove_classes=False,
external_styles=False,
allow_network=False,
disable_validation=True)
soup2 = BeautifulSoup(html_with_inline_style, features='lxml')

View File

@@ -188,6 +188,7 @@ class EpubPostprocessor:
for i, file in enumerate(not_added):
node = NavPoint(Section(f'To check #{i}, filename: {file}', file))
self.adjacency_list[-1].append(node)
self.added_to_toc_hrefs.add(file)
def unwrap_all_html_soup(self):
# mark