[Geany-devel] [PATCH] Ensure convert line endings before save

Nick Treleaven nick.treleaven at xxxxx
Mon Jul 12 12:46:37 UTC 2010

On Fri, 09 Jul 2010 20:50:38 +0200
Manuel Bua <manuel.bua at gmail.com> wrote:

> i
> implemented this simple feature, that basically ensure no mixed line
> endings control characters (le-cc) will be saved in the document, patch
> is attached (i used the latest SVN head, 5089).
> Let me explain the use case: i'm currently working on a project where
> some of the files contains mixed line endings control characters, ie.,
> some lines end with just CR, other with just LF: there is an easy way to
> convert everyone of these control charaters to something else via
> "Document->Set line endings->Convert and set ..." but this isn't
> something i always manage to remember to do and, better, i would like
> the editor to take care of that for me.
> So this patch add just that: in the "Preferences->Files->Saving files"
> dialog i added a  checkbox and, if checked, the editor will always
> convert any le-cc to the one currently actively on the document via
> sci_get_eol_mode(doc->editor->sci).

I think we could add it, unless anyone objects.


More information about the Devel mailing list