We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Due to $body = preg_replace('/\R/u', "\n\n", $body); in https://github.com/craftcms/contact-form/blob/v2/src/Mailer.php#L216 (introduced with ae8dd32), all newlines in a textarea field will be replaced by two newlines. Adding the following into the textarea field:
$body = preg_replace('/\R/u', "\n\n", $body);
foo bar text after empty line
gives this:
{{ tag('textarea', { text: message.message ?? '', id: 'message', name: 'message', }) }}
The text was updated successfully, but these errors were encountered:
8fbdf16
Thanks for reporting! Just released 2.5.1 with a fix for this.
Sorry, something went wrong.
No branches or pull requests
Description
Due to
$body = preg_replace('/\R/u', "\n\n", $body);
in https://github.com/craftcms/contact-form/blob/v2/src/Mailer.php#L216 (introduced with ae8dd32), all newlines in a textarea field will be replaced by two newlines. Adding the following into the textarea field:gives this:
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: