update formatting and line breaks