Embed Clara with TextFlow fix for whitespace after newline

This commit is contained in:
Phil Nash 2017-07-20 20:07:28 +01:00
parent b2a4dfcda4
commit 5c3355ad1b
2 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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;