Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/internal/catch_fatal_condition_handler.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-10-25 15:10:35 +0200
committerMartin Hořeňovský2021-10-25 15:21:28 +0200
commit905bf438ae4358d1e6b9fb99be40f868589d0857 (patch)
treeaa35e86f965a4142b76233738499a2e461d58d54 /src/catch2/internal/catch_fatal_condition_handler.cpp
parent0fdee1c27362f18f2769ba13d9a2f74823b3b8c4 (diff)
downloadcatch3-905bf438ae4358d1e6b9fb99be40f868589d0857.tar.gz
Fix bad indentation calculation in the console reporter
The problem came from the console reporter trying to provide a fancy linebreaking (primarily for things like `SCENARIO` or the BDD macros), so that new lines start with extra indentation if the text being line broken starts as "{text}: ". The console reporter did not properly take into account cases where the ": " part would already be in a later line, in which case it would ask for non-sensical level of indentation (larger than single line length). We fixed this by also enforcing that the special indentation case only triggers if the ": " is found early enough in the line, so that we also avoid degenerate cases like this: ``` blablabla: F a n c y . . . ``` Fixes #2309
Diffstat (limited to 'src/catch2/internal/catch_fatal_condition_handler.cpp')
0 files changed, 0 insertions, 0 deletions