SUMMARY I have configured "Remove trailing spaces" to "Never" in the Kate configuration. Yet, if I open a file with existing trailing spaces, edit a bit, then save it, then trailing spaces are automatically removed by Kate. I have tried with a C++ file and a regular text file, to make sure this wasn't specific to a file type. I have also tried setting "Remove trailing spaces" to "On modified lines" and got the same result. STEPS TO REPRODUCE 1. Set "Remove trailing spaces" to "Never" in the Kate configuration dialog; press "Apply" and close 2. Open a file with existing trailing spaces 3. Edit the file in some other places 4. Save the file OBSERVED RESULT Trailing spaces have been removed on saving, despite Kate being told not to do so. EXPECTED RESULT Trailing spaces should have been left intact. SOFTWARE/OS VERSIONS Ubuntu 24.04 Kate 23.08.5 (running on a XFCE desktop)
This seems to be a regression. Kate 21.12.3 on Ubuntu 22.04 worked fine.
Works for me in current versions like 25.04.2
Hmm, is there an easy way to test a newer Kate on Ubuntu 24.04?
You can try the Kate snap.
Oh, great, thank you. I can indeed confirm that it fixes the issue here.
Nice that this did work for you. Sorry that it was broken.