clarification on required behavior of insert_final_newline = false

26 views
Skip to first unread message

Oleg Tkachenko

unread,
Mar 13, 2017, 4:56:44 PM3/13/17
to EditorConfig
  • insert_final_newline: set to true to ensure file ends with a newline when saving and false to ensure it doesn't.
  • What is the exact semantics of the "false" value of this property? On one hand it reads as "false" requires an editor to make sure a file doesn't end with a newline (and so delete it if it's present). On the other hand "insert_final_newline=false" reads as "do not insert a final new line".
  • Can you please clarify how editors expected to handle insert_final_newline = false?
  • Thanks!


Reply all
Reply to author
Forward
0 new messages