editorconfig-notepad-plus-plus icon indicating copy to clipboard operation
editorconfig-notepad-plus-plus copied to clipboard

[BUG] Issue with cross-platform EOL (line endings)

Open maettu-this opened this issue 6 months ago • 1 comments

Moved here from https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16639. See:

Issue 1: CR LF gets appended on [Enter], even though [Unix (LF)] is detected.

And:

I think there should be a warning in this case, something like "EOL is detected as [Unix (LF)] but .editorconfig has crlf", when opening such a file. And I think there should also issue a warning when selecting [Unix (LF)] but .editorconfig has crlf.

Related to #54.

maettu-this avatar Jun 07 '25 08:06 maettu-this

Related: We considered a end_of_line=native option but concluded it was a bad idea: https://github.com/editorconfig/editorconfig/issues/226

But a warning is OK if possible. But how to display the warning in an uninstrusive way?

xuhdev avatar Jun 18 '25 07:06 xuhdev