Skip to content

[BUG] When formatting pasted multiline text as a quotation, each line is formatted separately #453

@abacabadabacaba

Description

@abacabadabacaba

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:

  1. Open some plain text editor, type some text which includes newlines, and copy it.
  2. In the message compose box, paste it.
  3. Select the text and click a button with a quote to apply quote formatting.
  4. Send the message.
  5. 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

Before sending:

After sending:

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions