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

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhil Nash2017-07-20 20:07:28 +0100
committerPhil Nash2017-07-20 20:07:28 +0100
commit5c3355ad1b6d5ed57df7f0da73dfe086500a4ef2 (patch)
treec05a1d8d0494beab3a18539e130b19a1948387d3
parentb2a4dfcda41c856c80ea6764373f7691d9e591d8 (diff)
downloadcatch3-5c3355ad1b6d5ed57df7f0da73dfe086500a4ef2.tar.gz
Embed Clara with TextFlow fix for whitespace after newline
-rw-r--r--include/external/clara.hpp6
-rw-r--r--third_party/clara.hpp6
2 files changed, 6 insertions, 6 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;
diff --git a/third_party/clara.hpp b/third_party/clara.hpp
index 0cd00b94..509c9b5a 100644
--- a/third_party/clara.hpp
+++ b/third_party/clara.hpp
@@ -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;