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