forked from LiveCarta/BookConverter
epub converter: fix
This commit is contained in:
@@ -346,7 +346,10 @@ def get_tags_between_chapter_marks(first_id, href, html_soup):
|
||||
next_tag = marked_tags.next_sibling
|
||||
tags = []
|
||||
while next_tag:
|
||||
if next_tag.attrs.get('class') == 'converter-chapter-mark':
|
||||
# TODO: why we hve there NavString
|
||||
|
||||
if not isinstance(next_tag, NavigableString) and\
|
||||
(next_tag.attrs.get('class') == 'converter-chapter-mark'):
|
||||
break
|
||||
tags.append(next_tag)
|
||||
next_tag = next_tag.next_sibling
|
||||
|
||||
Reference in New Issue
Block a user