Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update runner.py
Browse files Browse the repository at this point in the history
aantn committed Jan 5, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent ce724a1 commit fbd6dd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robusta_krr/core/runner.py
Original file line number Diff line number Diff line change
@@ -121,7 +121,7 @@ def _process_result(self, result: Result) -> None:

with open(file_name, "w") as target_file:
# don't use rich when writing a csv or html to avoid line wrapping etc
if settings.format == "csv" or settings.format == "html":
if settings.format == "csv" or settings.format == "html" or settings.format == "json" or settings.format == "yaml":
target_file.write(formatted)
else:
console = Console(file=target_file, width=settings.width)

0 comments on commit fbd6dd4

Please sign in to comment.