RocketChat / RocketChat/Rocket.Chat
WebHook Integration Script Field Can't Parse Newlines
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
Description:
The textbox for the script on the Webhook integrations is not properly parsing new lines.
Steps to reproduce:
- Go to Administration -> Integrations
- Select an existing or create a new integration
- Attempt to create a new line in the textbox for the script section
Expected behavior:
Properly display script with new lines
Actual behavior:
New lines are present, but are treated as spaces.

Server Setup Information:
- Version of Rocket.Chat Server: 3.11.0
- Operating System: Ubuntu
- Deployment Method: Docker
- Number of Running Instances: 1
- DB Replicaset Oplog: Enabled
- NodeJS Version: v12.18.4
- MongoDB Version: 4.0.22 / wiredTiger
Client Setup Information
- Desktop App or Browser Version: Browser Version
- Operating System: Fedora
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 in Administration → Integrations and reproduce the issue in the webhook script textbox using a script with multiple lines. Trace how the textbox value is displayed and saved, then verify that line breaks remain visible as line breaks rather than spaces.
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
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100