diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-09-24 14:12:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-24 14:12:44 +0200 |
commit | 5e24232597fbbac1c79bcf11e486b507caaa0cb2 (patch) | |
tree | 4c60d623606664cb1c57673d8fab70bed59c7614 /core | |
parent | a6bb4f70e07edc52cb969548876a0b57abeef546 (diff) | |
parent | 7b1ad6fbe019da0e59bec9ceb9b68c0b5b766833 (diff) |
Merge pull request #42300 from KoBeWi/noline
Remove unnecessary empty line from Dictionaries
Diffstat (limited to 'core')
-rw-r--r-- | core/variant_parser.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/variant_parser.cpp b/core/variant_parser.cpp index 3c4fed68fb..04cd4c1b9b 100644 --- a/core/variant_parser.cpp +++ b/core/variant_parser.cpp @@ -1608,10 +1608,12 @@ Error VariantWriter::write(const Variant &p_variant, StoreStringFunc p_store_str write(dict[E->get()], p_store_string_func, p_store_string_ud, p_encode_res_func, p_encode_res_ud); if (E->next()) { p_store_string_func(p_store_string_ud, ",\n"); + } else { + p_store_string_func(p_store_string_ud, "\n"); } } - p_store_string_func(p_store_string_ud, "\n}"); + p_store_string_func(p_store_string_ud, "}"); } break; case Variant::ARRAY: { |