@@ -2343,6 +2343,7 @@ async fn make_format_callback(
2343 if doc.version() == doc_version {
2343 if doc.version() == doc_version {
2344 doc.apply(&Transaction::from(format), view_id);
2344 doc.apply(&Transaction::from(format), view_id);
2345 doc.append_changes_to_history(view_id);
2345 doc.append_changes_to_history(view_id);
2346+ doc.detect_indent_and_line_ending();
2346 if let Modified::SetUnmodified = modified {
2347 if let Modified::SetUnmodified = modified {
2347 doc.reset_modified();
2348 doc.reset_modified();