Problem with AnsPress email addon and notification

Solved7.30K viewsIssues
0

Hi,

I have problem with notification content. Please look on this short screnncast: http://share.what.ovh/r8Gk

How can I add spacing (entery) between each line?

Thanks for your help and sorry for my english.

I use this addon with askbug theme.

Below is my anspress_email.php file.

0

Ok, so I manage to find solution for this problem. All strings from text fields (option panel) are sanitized by default, that means also line breaks. I added a If statement to check for email text fields and to return sanitized strings with preserved line breaks.

Pull request submitted, but if You are in a hurry, then You can grab changes from my github:

Commit: here

Changed file: here

commented on answer

Great. It’s working now. Many thanks for your help.

Great. It’s working
Thx

0

Nope. Priard (https://anspress.io/user/Lukasz_Ladecki/) find solution – in answer for this question.

0

Hello Tomasz,

Look like a bug. Please try

\n\n

for line break instead of enter.

commented on answer

Please add html forms