[PATCH] New feature: strip trailing white space on save

Shuhao shuhao at shuhaowu.com
Fri Apr 19 09:17:53 CEST 2013


This feature is a popular one among other editors and it is very trivial to
implement. I use mousepad occasionally to edit some files and want this
functionality.

Another one that I would like to implement but as a separate patch would be
not stripping the line that's currently highlighted.

This is my first patch, so any suggestions are welcome.

Shuhao

Shuhao (1):
  Added strip trailing whitespace on save

 mousepad/mousepad-document.c    |   22 +++++++++++++++++++++-
 mousepad/mousepad-document.h    |    5 +++++
 mousepad/mousepad-preferences.c |   11 +++++++++--
 mousepad/mousepad-window-ui.xml |    1 +
 mousepad/mousepad-window.c      |   30 ++++++++++++++++++++++++++++++
 5 files changed, 66 insertions(+), 3 deletions(-)

-- 
1.7.9.5



More information about the Xfce4-dev mailing list