Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion robusta_krr/core/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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" or settings.format == "json" or settings.format == "yaml":
if not rich or settings.format in ["csv", "html", "json", "yaml"]:
target_file.write(formatted)
else:
console = Console(file=target_file, width=settings.width)
Expand Down