Line endings are now detected and kept consistent.
Extra newline at EOF will now be added when saving files.