diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/raspberrypi/ctt/ctt_pretty_print_json.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/raspberrypi/ctt/ctt_pretty_print_json.py b/utils/raspberrypi/ctt/ctt_pretty_print_json.py index 3de8c108..dfa99a6d 100644 --- a/utils/raspberrypi/ctt/ctt_pretty_print_json.py +++ b/utils/raspberrypi/ctt/ctt_pretty_print_json.py @@ -52,8 +52,6 @@ class JSONPrettyPrinter(object): elif c == ':': self.fout.write(c) self.fout.write(' ') - elif c == ' ': - pass elif c == ',': if not self.state["inarray"][0]: self.fout.write(c) @@ -67,6 +65,8 @@ class JSONPrettyPrinter(object): self.newline() else: self.fout.write(' ') + elif c.isspace(): + pass else: self.fout.write(c) self.state["skipnewline"] = (c == '[') |