diff options
author | Ivan Vodopiviz <ivanvodo@gmail.com> | 2018-03-25 23:09:19 +0200 |
---|---|---|
committer | Ivan Vodopiviz <ivanvodo@gmail.com> | 2018-03-25 23:09:19 +0200 |
commit | e0f6b54b777335d83e07a82c3c72531371372e29 (patch) | |
tree | ae974ba9423f282e62871ead2e85467aa8050ccb /scene/resources/scene_format_text.cpp | |
parent | 201d2d7226ba4d385ac26e3cfaada180c2a7dacb (diff) |
Removed unnecessary newlines from tscn
References #6025. Made small changes to avoid adding newlines for no reason.
Diffstat (limited to 'scene/resources/scene_format_text.cpp')
-rw-r--r-- | scene/resources/scene_format_text.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/scene/resources/scene_format_text.cpp b/scene/resources/scene_format_text.cpp index 030b822f3b..597866eb74 100644 --- a/scene/resources/scene_format_text.cpp +++ b/scene/resources/scene_format_text.cpp @@ -1672,7 +1672,7 @@ Error ResourceFormatSaverTextInstance::save(const String &p_path, const RES &p_r f->store_string(vars); } - f->store_line("]\n"); + f->store_line("]"); for (int j = 0; j < state->get_node_property_count(i); j++) { @@ -1682,10 +1682,7 @@ Error ResourceFormatSaverTextInstance::save(const String &p_path, const RES &p_r f->store_string(_valprop(String(state->get_node_property_name(i, j))) + " = " + vars + "\n"); } - if (state->get_node_property_count(i)) { - //add space - f->store_line(String()); - } + f->store_line(String()); } for (int i = 0; i < state->get_connection_count(); i++) { @@ -1708,14 +1705,12 @@ Error ResourceFormatSaverTextInstance::save(const String &p_path, const RES &p_r f->store_string(" binds= " + vars); } - f->store_line("]\n"); + f->store_line("]"); } - f->store_line(String()); - Vector<NodePath> editable_instances = state->get_editable_instances(); for (int i = 0; i < editable_instances.size(); i++) { - f->store_line("[editable path=\"" + editable_instances[i].operator String() + "\"]"); + f->store_line("\n[editable path=\"" + editable_instances[i].operator String() + "\"]"); } } |