From 11bca250abb5f3944227deb883e2467c3e1f2120 Mon Sep 17 00:00:00 2001 From: Kibzik Date: Mon, 17 Apr 2023 19:29:06 +0300 Subject: [PATCH] Remove div from skip with lc_tmp --- src/epub_converter/epub_converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/epub_converter/epub_converter.py b/src/epub_converter/epub_converter.py index 6e83e74..668e340 100644 --- a/src/epub_converter/epub_converter.py +++ b/src/epub_converter/epub_converter.py @@ -280,7 +280,7 @@ class EpubConverter: for i in self.html_href2subchapters_ids[html_href]: tag = soup.find(id=i) # in order not to lose tags in verification of same level of chapter - parent_tag = tag.find_parents(['p', 'span', 'div', 'h1', 'h2', 'h3', 'h4', 'h5'])[-1] + parent_tag = tag.find_parents(['p', 'span', 'h1', 'h2', 'h3', 'h4', 'h5'])[-1] tmp_tag = soup.new_tag("lc_tmp") tmp_tag.attrs["class"] = "converter-chapter-mark" tmp_tag.attrs["id"] = i