Skip to content

Commit

Permalink
Pyrofork: parser: markdown: blockquote: Don't strip the message text
Browse files Browse the repository at this point in the history
Signed-off-by: wulan17 <wulan17@nusantararom.org>
  • Loading branch information
wulan17 committed Jan 14, 2024
1 parent 3439fd5 commit 7066b0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyrogram/parser/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ 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.strip())
result.append(line)
else:
result.append(line[-1].strip())
result.append(line[-1])
else:
if in_blockquote:
line = CLOSING_TAG.format("blockquote") + line
in_blockquote = False
result.append(line.strip())
result.append(line)

if in_blockquote:
line = result[len(result)-1] + CLOSING_TAG.format("blockquote")
Expand Down

0 comments on commit 7066b0d

Please sign in to comment.