Newlines at the end of files

For

Against

  • git considers a trailing newline a whitespace error.
  • Trailing whitespace is easily lost when, for example, exchanging patches via email.
  • A newline after a closing “?>” in PHP can cause problems with header() (although closing tags are no longer required in PHP).
  • It uses one more byte.