Open-CSP / FlexForm

MediaWiki extensions : HTML5 Form renderer
https://www.mediawiki.org/wiki/Extension:FlexForm
5 stars 4 forks source link

Message not rendering line breaks #46

Closed JeremiPlazas closed 5 months ago

JeremiPlazas commented 5 months ago

I'm noticing that in your latest version the message:

"flexform-createuser-email": "Dear $1,\\n\\nWe have created a new account for you.\\n\\nThis is one of two emails you will receive.\\nThe other email will be your email address confirmation.\\n\\n\nOnce you have confirmed, you can then login with the following credentials.\\n\\nUsername:\\n$2\\n\\nPassword:\\n$3\\n\\nYou should log in and choose a new password.",

Is not rendering line breaks. It looks like you may be escaping the second slash with the first slash. Did you mean to do that? I'm getting the following email when using the feature:

Dear Jeremi Plazas,\n\nWe have created a new account for you.\n\nThis is one of two emails you will receive.\nThe other email will be your email address confirmation.\n\n
Once you have confirmed, you can then login with the following credentials.\n\nUsername:\nJeremi.Plazas\n\nPassword:\nXXXXXXXX\n\nYou should log in and choose a new password.

Hope this helps!

Designburo commented 5 months ago

Hi Jeremy, Thank you for your input!! Last couple of days I've been working on the create user functions. Expect a new version of FlexForm most likely tomorrow. This issue I noticed as well and has been resolved.