RocketChat / RocketChat/Rocket.Chat

Text formatting doesn't work for multiline text

Open
#33,065 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

planned type: bug
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

When a text contains a newline the built-in text formatting buttons don't work:

grafik

Steps to reproduce:
  1. Enter the following text in the new message field:
This is
a test
  1. Mark both lines
  2. Press the "B" (bold) button
  3. The text becomes:
*This is
a test*
  1. Send message
Expected behavior:

The button should change the text to:

grafik

*This is*
*a test*
Actual behavior:

See above.

Server Setup Information:
  • Version of Rocket.Chat Server: 6.10.2
  • License Type: Community
  • Deployment Method: Docker
Client Setup Information
  • Desktop App or Browser Version: Desktop App 4.0.0
  • Operating System: Windows 10

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the new message field using the multiline text from the report, then trace the built-in formatting button behavior. Done means applying bold to selected multiline text produces separate formatting markers for each line and the sent message renders both lines bold.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.