aerni / statamic-livewire-forms

Supercharge your Statamic forms with Livewire
https://statamic.com/addons/aerni/livewire-forms
Other
28 stars 2 forks source link

Line breaks missing in email template #38

Closed MrMooky closed 1 year ago

MrMooky commented 1 year ago

Not sure if this is a "bug" in the add-on itself, but when sending a multi-line message, there are no breaks in the email.

This is a test message

Here is a new line

will look like this in the email:

This is a test message Here is a new line
aerni commented 1 year ago

What kind of message is this? Where, how, and when does it appear?

MrMooky commented 1 year ago

What kind of message is this?

The message within the email inbox. So when I have a textarea in the form and add text with line breaks, as mentioned in my initial post, this textarea content is not outputted correctly when viewing it in the inbox.

Again, I'm not sure if this is add-on related.

aerni commented 1 year ago

This issue is related to Statamic's form mails and has nothing to do with this addon.

I suppose you are using Statamic's automatic mail feature. I fixed the issue and it was already merged: https://github.com/statamic/cms/pull/8200

If you aren't using the automagic mail feature, you are in full control of your mail views. In that case, you should slap a nl2br modifier onto the textarea field's value in the view.

MrMooky commented 1 year ago

That fixed it, thanks. :)