summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-02-10 16:07:19 +0100
committerRémi Verschelde <rverschelde@gmail.com>2019-02-10 16:58:45 +0100
commit1aa7fc09eb584bcc4dcddc8ec7dd3ddbf92a215f (patch)
treea7e8eb6df8b664c369b9ec884b82e9dfcfc23683
parent17809ca9a907b8d48bea2fd26ea42312a9eaaca4 (diff)
TSCN: Remove extra newline after [resource]/[ext_resource]
Some cases had been handled in #17602, but those two were missed. Fixes #24677.
-rw-r--r--scene/resources/scene_format_text.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/scene_format_text.cpp b/scene/resources/scene_format_text.cpp
index 558810d92a..d00a7c2918 100644
--- a/scene/resources/scene_format_text.cpp
+++ b/scene/resources/scene_format_text.cpp
@@ -1562,7 +1562,7 @@ Error ResourceFormatSaverTextInstance::save(const String &p_path, const RES &p_r
break; //save as a scene
if (main) {
- f->store_line("[resource]\n");
+ f->store_line("[resource]");
} else {
String line = "[sub_resource ";
if (res->get_subindex() == 0) {
@@ -1577,7 +1577,7 @@ Error ResourceFormatSaverTextInstance::save(const String &p_path, const RES &p_r
int idx = res->get_subindex();
line += "type=\"" + res->get_class() + "\" id=" + itos(idx);
- f->store_line(line + "]\n");
+ f->store_line(line + "]");
if (takeover_paths) {
res->set_path(p_path + "::" + itos(idx), true);
}