Merge pull request #306 from Teqniksoft/kiryl/converter_fix

tag with img isn't empty
This commit is contained in:
bivis
2022-10-05 14:24:34 +03:00
committed by GitHub

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