Convert newline to br tag for stack traces