Browse Source

Added indentation to JSON config files

piracy-check
Anairkoen Schno 6 years ago
parent
commit
89540c00a5
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($"Error parsing JSON in file {Filename}.json; resetting to empty JSON");
Logger.config.Error(e); Logger.config.Error(e);
jsonObj = new JObject(); jsonObj = new JObject();
File.WriteAllText(finfo.FullName, JsonConvert.SerializeObject(jsonObj));
File.WriteAllText(finfo.FullName, JsonConvert.SerializeObject(jsonObj, Formatting.Indented));
} }
} }
else else
@ -91,7 +91,7 @@ namespace IPA.Config.ConfigProviders
var finfo = new FileInfo(Filename + ".json"); var finfo = new FileInfo(Filename + ".json");
File.WriteAllText(finfo.FullName, JsonConvert.SerializeObject(jsonObj));
File.WriteAllText(finfo.FullName, JsonConvert.SerializeObject(jsonObj, Formatting.Indented));
HasChanged = false; HasChanged = false;
} }


Loading…
Cancel
Save