In katepart 4.10 a change was made to the behaviour regarding saving trailing spaces. Many users including myself are a little annoyed with the change. It would be awesome if this patch could be used with a USE flag so that we can keep the behaviour we like. The change is only about 5 lines and I think we can be sure at least for 4.10 the change we do not like will stay permanent and these lines won't get fuzzy for patching. Some say the behaviour before was a bug. I would disagree and would prefer not to have extra trailing spaces in my file. Reproducible: Always Steps to Reproduce: 1. emerge katepart 4.10 2. Open file in Kate 3. Enable remove trailing spaces on save in settings "In entire document" 3. make some extra trailing space 3. Save Actual Results: Saves the file with trailing spaces remove on every line except behind the cursor. Expected Results: It should remove trailing spaces on every line including the one the cursor is on. If this moves the cursor, so be it. https://bugs.kde.org/show_bug.cgi?id=310712 http://quickgit.kde.org/?p=kate.git&a=commit&h=cebe2e4c47655d4fdef27ad4a306b89dfbdf3302
Created attachment 340262 [details] patch to undo the change in behaviour
https://github.com/Tatsh/tatsh-overlay/blob/master/kde-base/katepart/katepart-4.10.0-r1.ebuild
We can't just add a USE flag for every minor change that upstream makes, especially with optional patches. You're free to make use of the fact that most KDE packages support epatch_user by putting the patch in /etc/portage/patches/kde-base/katepart/ so that it continues to apply, if you haven't done so already.
This request looks like an option that should be turn on/off in the preferences. Maybe you should request that feature to upstream directly.