gnodet opened a new pull request, #14160:
URL: https://github.com/apache/maven/pull/14160

   Backport of #14142 to `maven-4.0.x`.
   
   - Override `render(String)` and `render(String, Object...)` in the `NoAnsi` 
inner class
     to strip ANSI markup tokens when color output is disabled
   - Extract `renderPlain(String)` as a private static helper that walks the 
token stream and
     discards the `@|code text|@` wrappers, keeping only the text portion
   - Validate ANSI codes via `AnsiRenderer.Code.valueOf()` to match the 
behaviour of the
     enabled-colour path (throws `IllegalArgumentException` for unknown codes)
   - Add `AnsiTest` covering the disabled-colour and enabled-colour cases
   
   Cherry-picked from 5f8cd7b831b5a65ecac373111167e1161c26df77 — applied 
cleanly with no conflicts.
   
   <!-- maven-backport-bot -->


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to