--TEST-- Bug #10816 Unwanted linebreak at the end of output --SKIPIF-- --FILE-- _build_params['ignore-iconv'] = true; $encoder->setTXTBody('test'); $encoder->setHTMLBody('test'); $encoder->addAttachment('Just a test', 'application/octet-stream', 'test.txt', false); $body = $encoder->get(); $taillength = -1 * strlen(MAIL_MIMEPART_CRLF) * 2; if (substr($body, $taillength) == (MAIL_MIMEPART_CRLF . MAIL_MIMEPART_CRLF)){ print("FAILED\n"); print("Body:\n"); print("..." . substr($body, -10) . "\n"); }else{ print("OK\n"); } --EXPECT-- OK