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