Editor EOL


#1

How do I get the EOL character of an editor? editor.invisibles.eol is just the invisible representation of the line return.


#2

There is currently no documented API for this, but you can find the functions here:

Because these are undocumented, they may change at any time.


#3

While a document API method would be best, this is a good start, thanks!


#4

I was curious to see if the null default meant it would return a null if the prefered line ending was the default, and sure enough it does :cry:

It seems, since there is no document API call, that there is no way to always get the exact EOL character back. Time for a feature request!