This question and this question point out that generally the standard is to end text files with newline characters to meet the POSIX standard, and this is something expected with GNU tools and other POSIX compliant tools.
However, as a C# developer, I know that tools that work with csproj
files generally don't include a terminating newline character. I've also seen tools that remove the terminating newline from json
and xml
files. I think it makes sense to avoid including a newline at the end of text files if the common tools that work with the files would just end up removing them again.
So, what are some types of text files that shouldn't end with newline characters due to tooling?