Skip to content

Commit

Permalink
insert_final_newline: don't do so on an empty file (#61)
Browse files Browse the repository at this point in the history
Fixes #15.
  • Loading branch information
cxw42 authored Sep 24, 2024
1 parent 9816f0e commit bd9df36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,9 @@ and the supported values associated with them:
characters in the file and ``false`` to ensure it doesn't.
* - ``insert_final_newline``
- Set to ``true`` ensure file ends with a newline when saving and ``false``
to ensure it doesn't.
to ensure it doesn't. Editors must not insert newlines in empty files
when saving those files, even if ``insert_final_newline = true``.

* - ``root``
- Must be specified in the preamble. Set to ``true`` to tell the core
not to check any higher directory for EditorConfig settings for on the
Expand Down

0 comments on commit bd9df36

Please sign in to comment.