Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ANSI escape code wrapping of deprecation messages #477

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Mar 8, 2024

Previously the colourisation of the deprecation messages would break if the output had prefixes added later (for example as happens when using an untrusted builder).

Now, each line is wrapped in its own colour code + reset code, which resolves the issue.

GUS-W-15212105.

Before:

before

After:

after

Previously the colourisation of the deprecation messages would break if
the output had prefixes added later (for example as happens when using
an untrusted builder, or when using Git).

Now, each line is wrapped in its own colour code + reset code, which resolves
the issue.
@edmorley edmorley self-assigned this Mar 8, 2024
@edmorley edmorley requested a review from a team as a code owner March 8, 2024 12:28
@edmorley edmorley changed the title Fix ANSI escape code wrapping of multi-line deprecation messages Fix ANSI escape code wrapping of deprecation messages Mar 8, 2024
@edmorley edmorley merged commit 45cfffe into main Mar 8, 2024
42 checks passed
@edmorley edmorley deleted the edmorley/fix-deprecation-ansi-wrapping branch March 8, 2024 13:24
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.

2 participants