Indent config file

This commit is contained in:
blankie 2023-02-07 13:57:37 +07:00
parent b21c31ad97
commit 5f13a1c1c4
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ void write_config(const Config& config) {
std::string tmp_config_file_path = config_file_path + ".tmp";
std::unique_ptr<FILE, decltype(&fclose_and_log)> 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();