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 ae8dd32c53c6af2882efe0e8ab411880e44aaeb6), all newlines in a textarea field will be replaced by two newlines. Adding the following into the textarea field:
foo
bar
text after empty line
gives this:
foo
bar
text after empty line
Steps to reproduce
Add a contact form like described in the readme, e.g.
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 ae8dd32c53c6af2882efe0e8ab411880e44aaeb6), 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