Are comments submitted through the Magento 2 contact form displayed as a single line, losing the sender’s line breaks? A small change to your email template can solve that.
Change the following line in your email template:
|
1 |
{{var data.comment}} |
to
|
1 |
{{var data.comment|nl2br}} |
Formatted messages should now display correctly.
Contact form message content appears as a single line
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.