protected function formatEmailBody($rawEmailBody)
    {
        if (!$this->enableFormatting) {
            return $rawEmailBody;
        }

        $body = str_replace([CRLF, CR], LF, $rawEmailBody);
        $body = preg_replace('/\\n{2,}/', LF . LF, $body);

        return trim($body);
    }