Merge the newline and ending sections.