Skip to content

Commit cd72e37

Browse files
committed
split lines with \n for clean joining
1 parent 39357d2 commit cd72e37

File tree

1 file changed

+1
-1
lines changed
  • pydantic_ai_slim/pydantic_ai

1 file changed

+1
-1
lines changed

pydantic_ai_slim/pydantic_ai/_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def handle_slash_command(
355355
except IndexError:
356356
console.print('[dim]No output available to copy.[/dim]')
357357
else:
358-
text_to_copy = ''.join(part.content for part in parts if part.part_kind == 'text')
358+
text_to_copy = '\n'.join(part.content for part in parts if part.part_kind == 'text')
359359
text_to_copy = text_to_copy.strip()
360360
if text_to_copy:
361361
pyperclip.copy(text_to_copy)

0 commit comments

Comments
 (0)