BUG Fix missing newline in last line of JSON output

This commit is contained in:
Renato Alves
2021-04-06 02:18:01 +02:00
parent e77e72237d
commit ffe7a35f33

View File

@@ -588,6 +588,8 @@ class HumanOutputFormat(OutputFormat):
class JSONOutputFormat(OutputFormat):
def output(self):
sys.stdout.write(json.dumps(self.pwstore, indent=2))
# Json dumps doesn't add the final newline
sys.stdout.write("\n")
class CSVOutputFormat(OutputFormat):