diff options
| author | Jeremy Rifkin | 2024-05-04 16:43:52 -0500 |
|---|---|---|
| committer | GitHub | 2024-05-04 23:43:52 +0200 |
| commit | 8ce2426e53b2596a9823b4a314f72f1c3b30be82 (patch) | |
| tree | e8262448f9810687436a3e4cb39372691e7baa31 /tools/misc/appveyorMergeCoverageScript.py | |
| parent | fa5a53df17303339eff8fda5cae0b601af207085 (diff) | |
| download | catch3-8ce2426e53b2596a9823b4a314f72f1c3b30be82.tar.gz | |
Handle ANSI escape sequences when performing column wrapping (#2849)
This PR adds functionality to skip around ANSI escape sequences in catch_textflow so they do not contribute to line length and line wrapping code does not split escape sequences in the middle. I've implemented this by creating a AnsiSkippingString abstraction that has a bidirectional iterator that can skip around escape sequences while iterating. Additionally I refactored Column::const_iterator to be iterator-based rather than index-based so this abstraction is a simple drop-in for std::string.
Currently only color sequences are handled, other escape sequences are left unaffected.
Motivation: Text with ANSI color sequences gets messed up when being output by Catch2 #2833.
Diffstat (limited to 'tools/misc/appveyorMergeCoverageScript.py')
0 files changed, 0 insertions, 0 deletions