SUMMARY The requested newline is not appended. STEPS TO REPRODUCE 1. Enable the option. 2. Open any file. 3. Remove the last newline or write something at the end of the file. 4. Save the file OBSERVED RESULT No newline added. SOFTWARE/OS VERSIONS Linux/KDE Plasma: git master (available in About System) KDE Plasma Version: git master KDE Frameworks Version: git master Qt Version: 5.12.4 P.S. It would be nice to get "Trim newlines at the end of file" option to ensure there is only single newline at the end of files.
(In reply to Eugene Shalygin from comment #0) The description is incorrect: saved file contains the newline at the end, it is just the editor which does not show it.
That is indeed by design, and we do not have any plans to change that.
Why do you think this behaviour is not confusing for a plain-text editor?
Well, it does append a newline at the end of the file on save. Other editors like vim also don't necessarily show it. It doesn't make it wrong behavior. This feature btw is mostly for old compilers that require a newline at eof since otherwise the code wouldn't compile...