Skip to content

Commit

Permalink
Fix "console" width on non real terminals (pipe)
Browse files Browse the repository at this point in the history
Signed-off-by: Jacek Szafarkiewicz <szafar@linux.pl>
  • Loading branch information
hadogenes authored and m-blaha committed Jul 3, 2024
1 parent dee3952 commit 2beb3ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnf/cli/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def calcColumns(self, data, columns=None, remainder_column=0,
full_columns.append(col[-1][0])
else:
full_columns.append(columns[d] + 1)
full_columns[0] += len(indent)
full_columns[0] += len(indent) * 2
# if possible, try to keep default width (usually 80 columns)
default_width = self.term.columns
if sum(full_columns) > default_width:
Expand Down

0 comments on commit 2beb3ef

Please sign in to comment.