浏览代码

Remove unnecessary empty line from Dictionaries

Tomasz Chabora 5 年之前
父节点
当前提交
7b1ad6fbe0
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      core/variant_parser.cpp

+ 3 - 1
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);
 				write(dict[E->get()], p_store_string_func, p_store_string_ud, p_encode_res_func, p_encode_res_ud);
 				if (E->next()) {
 				if (E->next()) {
 					p_store_string_func(p_store_string_ud, ",\n");
 					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;
 		} break;
 		case Variant::ARRAY: {
 		case Variant::ARRAY: {