Skip to content

Commit

Permalink
Pyrofork: fix blockquote parser
Browse files Browse the repository at this point in the history
Signed-off-by: wulan17 <wulan17@nusantararom.org>
  • Loading branch information
wulan17 committed Jan 15, 2024
1 parent 48a7cb7 commit f415f73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyrogram/parser/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def blockquote_parser(self, text):
line = re.sub(r'^> ', OPENING_TAG.format("blockquote"), line)
line = re.sub(r'^>', OPENING_TAG.format("blockquote"), line)
in_blockquote = True
result.append(line)
result.append(line.strip())
else:
result.append(line[-1])
result.append(line[1:].strip())
else:
if in_blockquote:
line = CLOSING_TAG.format("blockquote") + line
Expand Down

0 comments on commit f415f73

Please sign in to comment.