You should configure your editor to ensure that files always end with `\n`.