Skip to content

♻️ Let backend handle new lines#196

Closed
patrick91 wants to merge 2 commits into
mainfrom
let-backend-handle-new-lines
Closed

♻️ Let backend handle new lines#196
patrick91 wants to merge 2 commits into
mainfrom
let-backend-handle-new-lines

Conversation

@patrick91
Copy link
Copy Markdown
Collaborator

@patrick91 patrick91 commented May 13, 2026

Stack


if log.type == "message":
progress.log(Text.from_ansi(log.message.rstrip())) # ty: ignore[unresolved-attribute]
progress.log(text_from_ansi(log.message)) # ty: ignore[unresolved-attribute]
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rich's Text.from_ansi in 14 strips new lines, in version 15 it is fine, but I don't to force either version, so we have our own tiny function that handles the newlines as we expect

@patrick91
Copy link
Copy Markdown
Collaborator Author

Might avoid this for the time being 😊

@patrick91 patrick91 closed this May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant