Browse Source

Added indentation to JSON config files

pull/46/head
Anairkoen Schno 6 years ago
parent
commit
cf651e6b65
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      IPA.Loader/Config/ConfigProviders/JsonConfigProvider.cs

+ 2
- 2
IPA.Loader/Config/ConfigProviders/JsonConfigProvider.cs View File

@ -47,7 +47,7 @@ namespace IPA.Config.ConfigProviders
Logger.config.Error($"Error parsing JSON in file {Filename}.json; resetting to empty JSON");
Logger.config.Error(e);
jsonObj = new JObject();
File.WriteAllText(finfo.FullName, JsonConvert.SerializeObject(jsonObj));
File.WriteAllText(finfo.FullName, JsonConvert.SerializeObject(jsonObj, Formatting.Indented));
}
}
else
@ -91,7 +91,7 @@ namespace IPA.Config.ConfigProviders
var finfo = new FileInfo(Filename + ".json");
File.WriteAllText(finfo.FullName, JsonConvert.SerializeObject(jsonObj));
File.WriteAllText(finfo.FullName, JsonConvert.SerializeObject(jsonObj, Formatting.Indented));
HasChanged = false;
}


Loading…
Cancel
Save