Add soft_wrap=True to print_json

This commit adds soft_wrap=True to the invocation of print in
print_json. Without it, values wider than the console's width are
truncated, and the output will not be valid JSON.
This commit is contained in:
James Estevez 2021-11-06 11:51:24 -07:00
parent 316be7bf67
commit 3ee35156de
No known key found for this signature in database
GPG Key ID: C0C050782B9D5B32
1 changed files with 1 additions and 1 deletions

View File

@ -1679,7 +1679,7 @@ class Console:
default=default,
sort_keys=sort_keys,
)
self.print(json_renderable)
self.print(json_renderable, soft_wrap=True)
def update_screen(
self,