jonleighton/gedit-trailsave — Issue #5: Doesn't work with CRLF (Windows) or CR (Mac OS Classic) line endings
Author: bmars
Created: 2011-11-22 11:12:52+00:00
State: open

With files that use Windows or Mac OS Classic line endings, trailsave doesn't work at all. The trailing space regex doesn't work with non-Unix line endings since "$" only matches "\n".

I've written a patch that converts all the line endings to Unix with replace() before the regex gets to it. Not sure if that's the best way to go about it, but it's easy and it works.