We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f4441d commit f3b33efCopy full SHA for f3b33ef
1 file changed
pyrogram/client/parser/html.py
@@ -86,8 +86,7 @@ def handle_data(self, data):
86
87
for entities in self.tag_entities.values():
88
for entity in entities:
89
- entity.offset += len(data) - len(data.lstrip()) # Ignore left whitespaces for offsets
90
- entity.length += len(data.strip()) # Ignore all whitespaces (left + right) for lengths
+ entity.length += len(data)
91
92
self.text += data
93
0 commit comments