mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-04 21:29:54 +01:00
Embed Clara with TextFlow fix for whitespace after newline
This commit is contained in:
parent
b2a4dfcda4
commit
5c3355ad1b
6
include/external/clara.hpp
vendored
6
include/external/clara.hpp
vendored
@ -146,9 +146,9 @@ namespace Catch { namespace clara { namespace TextFlow {
|
||||
m_pos += m_len;
|
||||
if( m_pos < line().size() && line()[m_pos] == '\n' )
|
||||
m_pos += 1;
|
||||
|
||||
while( m_pos < line().size() && isWhitespace( line()[m_pos] ) )
|
||||
++m_pos;
|
||||
else
|
||||
while( m_pos < line().size() && isWhitespace( line()[m_pos] ) )
|
||||
++m_pos;
|
||||
|
||||
if( m_pos == line().size() ) {
|
||||
m_pos = 0;
|
||||
|
6
third_party/clara.hpp
vendored
6
third_party/clara.hpp
vendored
@ -144,9 +144,9 @@ namespace clara { namespace TextFlow {
|
||||
m_pos += m_len;
|
||||
if( m_pos < line().size() && line()[m_pos] == '\n' )
|
||||
m_pos += 1;
|
||||
|
||||
while( m_pos < line().size() && isWhitespace( line()[m_pos] ) )
|
||||
++m_pos;
|
||||
else
|
||||
while( m_pos < line().size() && isWhitespace( line()[m_pos] ) )
|
||||
++m_pos;
|
||||
|
||||
if( m_pos == line().size() ) {
|
||||
m_pos = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user