From deb7ebdab296ae07ff79db6b84b31cb7eb8df307 Mon Sep 17 00:00:00 2001 From: Richard Kuhnt Date: Sun, 7 May 2017 20:50:13 +0200 Subject: [PATCH] Add tab replacment to formatjson.ps1 --- bin/formatjson.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/formatjson.ps1 b/bin/formatjson.ps1 index 84dbab9c2..3705245e1 100644 --- a/bin/formatjson.ps1 +++ b/bin/formatjson.ps1 @@ -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) }