mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-16 10:42:25 +01:00
8ce2426e53
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. |
||
---|---|---|
.. | ||
Algorithms.tests.cpp | ||
AssertionHandler.tests.cpp | ||
Clara.tests.cpp | ||
CmdLine.tests.cpp | ||
CmdLineHelpers.tests.cpp | ||
ColourImpl.tests.cpp | ||
Details.tests.cpp | ||
FloatingPoint.tests.cpp | ||
GeneratorsImpl.tests.cpp | ||
Integer.tests.cpp | ||
InternalBenchmark.tests.cpp | ||
Json.tests.cpp | ||
Parse.tests.cpp | ||
PartTracker.tests.cpp | ||
RandomNumberGeneration.tests.cpp | ||
Reporters.tests.cpp | ||
Sharding.tests.cpp | ||
Stream.tests.cpp | ||
String.tests.cpp | ||
StringManip.tests.cpp | ||
Tag.tests.cpp | ||
TestCaseInfoHasher.tests.cpp | ||
TestSpec.tests.cpp | ||
TestSpecParser.tests.cpp | ||
TextFlow.tests.cpp | ||
ToString.tests.cpp | ||
Traits.tests.cpp | ||
UniquePtr.tests.cpp | ||
Xml.tests.cpp |