1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Implement trim_final_newlines functionality

This commit is contained in:
Aiden Storey
2024-01-12 00:32:13 -05:00
parent d4f726f3ef
commit b4c1634b52
13 changed files with 99 additions and 4 deletions

View File

@@ -174,6 +174,7 @@ public:
virtual void set_executing_line(int p_line) = 0;
virtual void clear_executing_line() = 0;
virtual void trim_trailing_whitespace() = 0;
virtual void trim_final_newlines() = 0;
virtual void insert_final_newline() = 0;
virtual void convert_indent() = 0;
virtual void ensure_focus() = 0;
@@ -408,6 +409,7 @@ class ScriptEditor : public PanelContainer {
bool open_textfile_after_create = true;
bool trim_trailing_whitespace_on_save;
bool trim_final_newlines_on_save;
bool convert_indent_on_save;
bool external_editor_active;