-
Notifications
You must be signed in to change notification settings - Fork 848
[BUG] When formatting pasted multiline text as a quotation, each line is formatted separately #453
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When I paste some text containing newlines into message compose box and then style it as a quotation, then, after the message is sent, each line is formatted as a separate quotation. This issue only appears if a multiline text is pasted but not if it is directly typed (using Shift+Enter to type newlines).
To Reproduce
Steps to reproduce the behavior:
- Open some plain text editor, type some text which includes newlines, and copy it.
- In the message compose box, paste it.
- Select the text and click a button with a quote to apply quote formatting.
- Send the message.
- In the edit box, the message is formatted properly, but after sending, each line is formatted as a separate quote.
Expected behavior
The entire text is formatted as a single quote.
Screenshots
Expected behavior (this is what I get when I type the newline directly, instead of pasting it):

Desktop (please complete the following information):
- OS: Linux
- Browser: Firefox 128.12.0esr
- Version: Telegram WebK 2.2 (577)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working

