Maintain the newline on the last line in the file.