Eradicate spaces from tileset metadata JSON fields

This commit is contained in:
Erica Fischer
2022-12-27 13:35:44 -08:00
parent a4f4b1f7c6
commit dacff83386
148 changed files with 303 additions and 234 deletions
+5 -1
View File
@@ -29,7 +29,11 @@ void json_writer::json_adjust() {
nospace = false;
state[state.size() - 1] = JSON_WRITE_HASH_KEY;
} else if (state[state.size() - 1] == JSON_WRITE_HASH_KEY) {
adds(": ");
adds(":");
if (!nospace) {
addc(' ');
nospace = false;
}
state[state.size() - 1] = JSON_WRITE_HASH_VALUE;
} else if (state[state.size() - 1] == JSON_WRITE_HASH_VALUE) {
if (wantnl) {