Reg the format of display on slack or mattermost for larger output produced from stdout

Hi Team,

When the stdout is produced with larger lines of output when it is shown in the slack channel, the new line, break, tabs are not properly recognized and displayed as expected as in the st2client.

How the output is posted to the Slack channel is properly formatted. Please help to guide.