File saving: remove trailing spaces only for modified lines
@swilmet
Submitted by Sébastien Wilmet Link to original bug (#736585)
Description
Git doesn't like trailing spaces.
An easy solution is to remove all trailing spaces of the buffer when saving a file. But a better solution is to remove trailing spaces only for modified lines (and new lines).
A GtkTextRegion can be used to keep track of the modified lines.
This behavior would be available with a boolean property in GtkSourceFileSaver.