RocketChat / RocketChat/Rocket.Chat
Text formatting doesn't work for multiline text
Open
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:
Steps to reproduce:
- Enter the following text in the new message field:
This is
a test
- Mark both lines
- Press the "B" (bold) button
- The text becomes:
*This is
a test*
- Send message
Expected behavior:
The button should change the text to:
*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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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