mirror of
https://github.com/redstrate/Auracite.git
synced 2025-05-01 08:27:46 +00:00
Pretty-print character.json
This commit is contained in:
parent
70002bbe7a
commit
bc0f8eff6e
1 changed files with 1 additions and 1 deletions
|
@ -348,7 +348,7 @@ pub async fn archive_character(
|
||||||
}
|
}
|
||||||
|
|
||||||
zip.start_file("character.json", options)?;
|
zip.start_file("character.json", options)?;
|
||||||
zip.write_all(serde_json::to_string(&char_data).unwrap().as_ref())?;
|
zip.write_all(serde_json::to_string_pretty(&char_data).unwrap().as_ref())?;
|
||||||
|
|
||||||
zip.start_file("character.html", options)?;
|
zip.start_file("character.html", options)?;
|
||||||
zip.write_all(create_character_html(&char_data).as_ref())?;
|
zip.write_all(create_character_html(&char_data).as_ref())?;
|
||||||
|
|
Loading…
Add table
Reference in a new issue