mirror of https://github.com/Textualize/rich.git
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:
parent
316be7bf67
commit
3ee35156de
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue