Fix strikethrough message entity unparsing (#598)

This commit is contained in:
Harsh 2021-01-17 16:46:06 +05:30 committed by GitHub
parent 2b3e5f2b0a
commit 967f25796c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,7 +153,7 @@ class HTML:
start = entity.offset start = entity.offset
end = start + entity.length end = start + entity.length
if entity_type in ("bold", "italic", "underline", "strike"): if entity_type in ("bold", "italic", "underline", "strikethrough"):
start_tag = f"<{entity_type[0]}>" start_tag = f"<{entity_type[0]}>"
end_tag = f"</{entity_type[0]}>" end_tag = f"</{entity_type[0]}>"
elif entity_type in ("code", "pre", "blockquote"): elif entity_type in ("code", "pre", "blockquote"):