Hacker News new | ask | show | jobs
by eqvinox 621 days ago
A trailing newline to me is "\n\n" at the end of a file, i.e. a superfluous empty line. That doesn't seem to be what the root comment is referring to, though?
1 comments

I'm referring to files ending with a \n, and I do not see why this wouldn't be a trailing newline. It's a newline... at the end.
In my head, a trailing newline is a newline, at the end, on its own, a blank line after the last line in a file… that's a file ending in \n\n (or more).

It hadn't even occurred to me until today that anything else could be meant :o