mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
style: Improve string formatting in io.py
This commit is contained in:
parent
b9f2a415ce
commit
9fc8b00a13
1 changed files with 2 additions and 2 deletions
|
@ -370,11 +370,11 @@ class InputOutput:
|
|||
|
||||
if subject:
|
||||
self.tool_output()
|
||||
if '\n' in subject:
|
||||
if "\n" in subject:
|
||||
lines = subject.splitlines()
|
||||
max_length = max(len(line) for line in lines)
|
||||
padded_lines = [line.ljust(max_length) for line in lines]
|
||||
padded_subject = '\n'.join(padded_lines)
|
||||
padded_subject = "\n".join(padded_lines)
|
||||
self.tool_output(padded_subject, bold=True)
|
||||
else:
|
||||
self.tool_output(subject, bold=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue