TSCN: Remove extra newline after [resource]/[ext_resource]
Some cases had been handled in #17602, but those two were missed. Fixes #24677.
This commit is contained in:
parent
17809ca9a9
commit
1aa7fc09eb
1 changed files with 2 additions and 2 deletions
|
@ -1562,7 +1562,7 @@ Error ResourceFormatSaverTextInstance::save(const String &p_path, const RES &p_r
|
||||||
break; //save as a scene
|
break; //save as a scene
|
||||||
|
|
||||||
if (main) {
|
if (main) {
|
||||||
f->store_line("[resource]\n");
|
f->store_line("[resource]");
|
||||||
} else {
|
} else {
|
||||||
String line = "[sub_resource ";
|
String line = "[sub_resource ";
|
||||||
if (res->get_subindex() == 0) {
|
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();
|
int idx = res->get_subindex();
|
||||||
line += "type=\"" + res->get_class() + "\" id=" + itos(idx);
|
line += "type=\"" + res->get_class() + "\" id=" + itos(idx);
|
||||||
f->store_line(line + "]\n");
|
f->store_line(line + "]");
|
||||||
if (takeover_paths) {
|
if (takeover_paths) {
|
||||||
res->set_path(p_path + "::" + itos(idx), true);
|
res->set_path(p_path + "::" + itos(idx), true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue