After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 736585 - File saving: remove trailing spaces only for modified lines
File saving: remove trailing spaces only for modified lines
Status: RESOLVED OBSOLETE
Product: tepl
Classification: Other
Component: File loading and saving
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Gtef maintainer(s)
Gtef maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-09-12 19:34 UTC by Sébastien Wilmet
Modified: 2018-02-27 09:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sébastien Wilmet 2014-09-12 19:34:28 UTC
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.
Comment 1 Sébastien Wilmet 2017-04-25 10:06:04 UTC
Move the bug to Gtef.
Comment 2 Sébastien Wilmet 2017-04-25 10:07:25 UTC
GtkTextRegion -> GtkSourceRegion.
GtkSourceFileSaver -> GtefFileSaver.
Comment 3 GNOME Infrastructure Team 2018-02-27 09:58:33 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/tepl/issues/2.