tag with img isn't empty

This commit is contained in:
Kiryl
2022-09-30 13:15:27 +03:00
parent 58b6c2de3b
commit a08f210d4d

View File

@@ -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