fixed ensure_newline_at_eof_on_save support when format_on_save is enabled.