Skip to content

Commit f3b33ef

Browse files
committed
Revert "Enhance Parser when dealing with leading and trailing whitespaces"
This reverts commit 8cdcf90
1 parent 3f4441d commit f3b33ef

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pyrogram/client/parser/html.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ def handle_data(self, data):
8686

8787
for entities in self.tag_entities.values():
8888
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
89+
entity.length += len(data)
9190

9291
self.text += data
9392

0 commit comments

Comments
 (0)