Closed mcandre closed 1 year ago
Hi @mcandre - the insert_final_newline
-option's intend is to let the file end with a final newline character. I'd suggest you should also disable insert_final_newline
for patch-files.
I don't really get why mcandre should disable an option which is - as described - necessary oO
Closing as Atom is abandoned.
Summary
I need to have the
.patch
file I am editing end with a line consisting of a single ASCII space character, followed by a final ASCII line feed character. However, Atom's EditorConfig plugin hasinsert_final_newline
misbehaving whentrim_trailing_whitespace
is disabled: When I try to save the file, the EditorConfig plugin deletes the trailing space character, corrupting the patch file.Sample file
Involved .editorconfig-files
Installed packages
I'm using macOS High Sierra in case that matters.