Last line break will be removed when rewriting the file.