diff options
| author | Phil Nash | 2017-07-20 20:07:28 +0100 |
|---|---|---|
| committer | Phil Nash | 2017-07-20 20:07:28 +0100 |
| commit | 5c3355ad1b6d5ed57df7f0da73dfe086500a4ef2 (patch) | |
| tree | c05a1d8d0494beab3a18539e130b19a1948387d3 /include | |
| parent | b2a4dfcda41c856c80ea6764373f7691d9e591d8 (diff) | |
| download | catch3-5c3355ad1b6d5ed57df7f0da73dfe086500a4ef2.tar.gz | |
Embed Clara with TextFlow fix for whitespace after newline
Diffstat (limited to 'include')
| -rw-r--r-- | include/external/clara.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/external/clara.hpp b/include/external/clara.hpp index 189e16e2..091c2fa8 100644 --- a/include/external/clara.hpp +++ b/include/external/clara.hpp @@ -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; |