Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confirmation email whitespace problems in outlook #82

Open
severicasserly opened this issue Jul 9, 2020 · 1 comment
Open

Confirmation email whitespace problems in outlook #82

severicasserly opened this issue Jul 9, 2020 · 1 comment

Comments

@severicasserly
Copy link

It seems that outlook drops linebreaks and other whitespace from the user modifiable part of confirmation emails.

At the moment the email is generated with pug and this "Vahvistus sähköpostiin" field is turned into one <p>aragraph. The formatting is preserved with a css attribute white-space: pre-line which is not supported in outlook.

I have tested this with our own fork, but could someone confirm the problem?

@juiceo
Copy link
Contributor

juiceo commented Jul 9, 2020

A possible solution, before sending the message replace linebreaks with <br/>, have done so in a few other projects:

message.value.replace(/(?:\r\n|\r|\n)/g, '<br>')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants