mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-03-28 05:44:14 +03:00
Make HTML parser yield the correct offset and lengths
This commit is contained in:
parent
d6ec883cd9
commit
d854babf22
|
@ -98,7 +98,7 @@ class HTMLToTelegramParser(HTMLParser):
|
|||
text = url
|
||||
|
||||
for tag, entity in self._building_entities.items():
|
||||
entity.length += len(text.strip('\n'))
|
||||
entity.length += len(text)
|
||||
|
||||
self.text += text
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user