From c7ab1976450968562b61ab9975d5573efe90c08a Mon Sep 17 00:00:00 2001 From: dmlb2000 Date: Thu, 3 Nov 2016 15:49:04 -0700 Subject: [PATCH] don't need to blow away the space here --- pre_commit_hooks/pretty_format_json.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pre_commit_hooks/pretty_format_json.py b/pre_commit_hooks/pretty_format_json.py index 1058e21..a1dccc0 100644 --- a/pre_commit_hooks/pretty_format_json.py +++ b/pre_commit_hooks/pretty_format_json.py @@ -24,6 +24,7 @@ def _get_pretty_format(contents, indent, sort_keys=True, top_keys=[]): indent=indent ) + "\n" # dumps don't end with a newline + def _autofix(filename, new_contents): print("Fixing file {0}".format(filename)) with open(filename, 'w') as f: