Join multiline text with a newline character to preserve line breaks