use ESCAPE_CONTROLS_ONLY when writing JSON

This commit is contained in:
Martin Michelsen
2024-01-24 21:03:48 -08:00
parent 0fff4ebd4e
commit 082f88d242
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -842,7 +842,7 @@ void TournamentIndex::save() const {
for (const auto& it : this->name_to_tournament) {
json.emplace(it.second->get_name(), it.second->json());
}
save_file(this->state_filename, json.serialize(JSON::SerializeOption::FORMAT | JSON::SerializeOption::HEX_INTEGERS));
save_file(this->state_filename, json.serialize(JSON::SerializeOption::FORMAT | JSON::SerializeOption::HEX_INTEGERS | JSON::SerializeOption::ESCAPE_CONTROLS_ONLY));
}
shared_ptr<Tournament> TournamentIndex::create_tournament(