Textarea fields in Notification messages don't keep line breaks #9494
Labels
Area: Emails
Issues & PRs related to all things regarding emails & email module
Priority:Moderate
Issues & PRs that are minor; broken styling, cosmetic, warnings - there are practical workarounds
Status:Fix Proposed
A issue that has a PR related to it that provides a possible resolution
Type:Bug
Bugs within the core SuiteCRM codebase
Whenever you have a text in a notification email that contains line breaks, the message received won't keep/display them. Appearing all the text in a single line.
For example:
The file include/language/en_us.notify_template.html contains this meeting invitation:
If the {MEETING_DESCRIPTION} contains line breaks, they won't be displayed properly in the email. Instead it will appear everything in same line.
Issue
Notification emails removes line breaks of textarea fields.
Expected Behavior
The text should appear as it is formatted in the textarea field
Actual Behavior
All the text in the textarea field appears in the same line.
Possible Fix
It's possible to add HTML line break tags within the text area field, but a more generic solution would be wraping those fields in "
" tags/styleSteps to Reproduce
Context
If line breaks aren't displayed properly, the information might be misunderstood. And it isn't aesthetically complying.
Your Environment
SuiteCRM Version used: Version 7.12.2
Browser name and version: Chrome Versión 97.0.4692.71 (Build oficial) (64 bits)
Environment name and version: MySQL, PHP 7
Operating System and version: Ubuntu 18.04
The text was updated successfully, but these errors were encountered: