Merge the newline-equivalent replacements