Pull request that fixes INTEXT-118 - correct splitting into parts when newlines in long messages

These commits contains a test that shows the problem (INTEXT-118) for multi line texts and also contains a solution that supports both single line texts and multi line texts.