Merge pull request #434 from taiki-e/sdl-format

Fix format of InputObject in SDL
This commit is contained in:
Sunli 2021-03-07 15:58:48 +08:00 committed by GitHub
commit 2ce36b2c69

View File

@ -200,9 +200,9 @@ impl Registry {
writeln!(sdl, "{{").ok();
for field in input_fields.values() {
if let Some(description) = field.description {
writeln!(sdl, "\"\"\"\n{}\n\"\"\"", description).ok();
writeln!(sdl, "\t\"\"\"\n\t{}\n\t\"\"\"", description).ok();
}
writeln!(sdl, "{}", export_input_value(&field)).ok();
writeln!(sdl, "\t{}", export_input_value(&field)).ok();
}
writeln!(sdl, "}}").ok();
}