Clean up message from excess whitespace and make sure that the last line ends with a '\n '.
Optionally, can remove lines starting with a "#".
The message to be prettified.
Non-zero to remove comment lines, 0 to leave them in.
Comment character. Lines starting with this character are considered to be comments and removed if strip_comments
is non-zero.
0 or an error code.