forked from LiveCarta/BookConverter
tag with img isn't empty
This commit is contained in:
@@ -103,7 +103,8 @@ class LibreHtml2JsonConverter:
|
|||||||
br.decompose()
|
br.decompose()
|
||||||
|
|
||||||
text = re.sub(r"\s+", "", temp_tag.text)
|
text = re.sub(r"\s+", "", temp_tag.text)
|
||||||
if text:
|
imgs = temp_tag.find_all("img")
|
||||||
|
if text or imgs:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user