SUMMARY KWrite removes trailing spaces as if the corresponding setting was set to "In Entire Document" STEPS TO REPRODUCE 1. Have "Remove trailing spaces" set to "On Modified Lines" or "Never" 2. Open a file that contains trailing spaces at the end 3. Press CTRL+S OBSERVED RESULT all trailing spaces are removed EXPECTED RESULT all trailing spaces stay SOFTWARE/OS VERSIONS Linux/KDE Plasma: KDE Neon 5.27 (available in About System) KDE Plasma Version: 5.27.7 KDE Frameworks Version: 5.108.0 Qt Version: 5.15.10 ADDITIONAL INFORMATION I had this issue previously, but it went away after a few days (possibly/likely after a system update)
Did your document live in a project which has a .editorconfig or a .kateconfig file?
project / directory
Yes, there is some .editorconfig file ib the same folder, containing "trim_trailing_whitespace = true". So that seems to be the actual issue I have (sorry, not a bug then). Is there a way to override this behavior without editing the .editorconfig file?
> Is there a way to override this behavior without editing the .editorconfig file? No. The purpose of that file is to override editor's own config and provide same behaviour regardless of the editor.