Fix format of InputObject in SDL

This commit is contained in:
Taiki Endo 2021-03-07 15:35:47 +09:00
parent 5fdc8d62b4
commit f3e488c6a6

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();
}