epub converter: fix double boxes

This commit is contained in:
shirshasa
2021-09-03 10:22:59 +03:00
parent e8df9ad020
commit 2f090eeac1

View File

@@ -323,7 +323,6 @@ def unwrap_structural_tags(body_tag):
for s in body_tag.find_all("section"):
could_be_unwrapped = True
if s.attrs.get('class'):
_preserve_class_in_aside_tag(s)
could_be_unwrapped = _preserve_class_in_section_tag(s)
_add_span_to_save_ids_for_links(s)
if could_be_unwrapped: