STEPS TO REPRODUCE 1. Create a text file with some chars. Ensure NO new line at the end 2. Save the flie 3. Kate appended a \n at the end. OBSERVED RESULT \n at the end EXPECTED RESULT Saving as I typed everything
That is intended behavior and follows a lot of other editors. You can turn it off in the configuration dialog under 'Open/Save'.
Uups :) Okay, but WHAT is the benefit of that? Why do people like it that way? …or even expect it to change the bytes it magically?
A file that does not end with a \n looks like it is truncated.