Text comes in as "Test\r\nTest"
Mahara/lib/web.php::format_whitespace (line 3165) changes this to Test<br>\nTest
Mahara/interaction/forum/lib.php:ActivityTypeInteractionForumNewPost->__construct (Line 939) then does
$post->textbody = trim(html2text($post->body));
giving the two "\n"s.
So it looks like format_whitespace needs to just put <br> or just \n... will see tomorrow, Lord willing.
Diagnosis so far (going home for the day now):
Text comes in as "Test\r\nTest" lib/web. php::format_ whitespace (line 3165) changes this to Test<br>\nTest interaction/ forum/lib. php:ActivityTyp eInteractionFor umNewPost- >__construct (Line 939) then does
Mahara/
Mahara/
$post->textbody = trim(html2text( $post-> body));
giving the two "\n"s.
So it looks like format_whitespace needs to just put <br> or just \n... will see tomorrow, Lord willing.