Indent config file
This commit is contained in:
parent
b21c31ad97
commit
5f13a1c1c4
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue