diff options
author | Yossi Ovadia <yossi.ovadia@nokia.com> | 2018-12-28 12:54:37 -0800 |
---|---|---|
committer | Yossi Ovadia <yossi.ovadia@nokia.com> | 2019-01-23 11:41:08 -0800 |
commit | b895afe8e18b0bd67cb5dadc90667bf4d64d5d4e (patch) | |
tree | 56dca0b26cf1655b85928f16d76f4045ab0d2e13 | |
parent | 99236b49267049c6bd32a26feec57d9b18b676cb (diff) | |
download | cliff-b895afe8e18b0bd67cb5dadc90667bf4d64d5d4e.tar.gz |
Missing carriage return in some cases, using -f json
Closes-Bug #1674213
Change-Id: Id897d890c1c2fa2a7234e057e4d5c3dd4d8d55e6
-rw-r--r-- | cliff/formatters/json_format.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cliff/formatters/json_format.py b/cliff/formatters/json_format.py index 4483e91..0480432 100644 --- a/cliff/formatters/json_format.py +++ b/cliff/formatters/json_format.py @@ -52,3 +52,4 @@ class JSONFormatter(base.ListFormatter, base.SingleFormatter): } indent = None if parsed_args.noindent else 2 json.dump(one, stdout, indent=indent) + stdout.write('\n') |