Add tab replacment to formatjson.ps1

This commit is contained in:
Richard Kuhnt
2017-05-07 20:50:13 +02:00
parent eb552feab5
commit deb7ebdab2
+5
View File
@@ -21,6 +21,11 @@ if ($type -is [System.IO.DirectoryInfo]) {
}
$files | % {
# beautify
$json = parse_json "$dir$_" | ConvertToPrettyJson
# convert to 4 spaces
$json = $json -replace "`t",' '
[System.IO.File]::WriteAllLines("$dir$_", $json)
}