From 5f13a1c1c495c986e18f02cfef98315099a52664 Mon Sep 17 00:00:00 2001 From: blankie Date: Tue, 7 Feb 2023 13:57:37 +0700 Subject: [PATCH] Indent config file --- config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.cpp b/config.cpp index c10d454..5bcc46d 100644 --- a/config.cpp +++ b/config.cpp @@ -99,7 +99,7 @@ void write_config(const Config& config) { std::string tmp_config_file_path = config_file_path + ".tmp"; std::unique_ptr config_file(fopen_or_raise(tmp_config_file_path.c_str(), "w", false), fclose_and_log); - std::string str_config = nlohmann::json(config).dump(); + std::string str_config = nlohmann::json(config).dump(4); fwrite(str_config.data(), sizeof(char), str_config.size(), config_file.get()); config_file.reset();