Removes duplicate newline.