-
Notifications
You must be signed in to change notification settings - Fork 294
Labels
Description
Steps to reproduce
- Write an email.
- Save it as draft.
- Reopen the draft.
Expected behavior
Draft is reopened unchanged.
Actual behavior
The reopened draft contains additional newlines/spaces. Each time the draft is saved, another newline/space pair is added.
Mail app version
5.6.5
Nextcloud version
31.0.10
Mailserver or service
GMX
Operating system
Linux
PHP engine version
None
Nextcloud memory caching
No response
Web server
None
Database
None
Additional info
Looking into the solution, I suspect this regex to be guilty:
Line 190 in 7e48f11
| return html(text.value.replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1<br>$2')) |