From e6f2ed341a45301c5ed6b291fae810033aa8925e Mon Sep 17 00:00:00 2001 From: bmagistro Date: Thu, 9 Mar 2017 14:07:15 -0500 Subject: [PATCH] attempt 2, fix whitespace differences --- src/vmime/headerField.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/vmime/headerField.cpp b/src/vmime/headerField.cpp index dc80957b..40611a45 100644 --- a/src/vmime/headerField.cpp +++ b/src/vmime/headerField.cpp @@ -114,31 +114,31 @@ shared_ptr headerField::parseNext const size_t nameEnd = pos; while (pos < end && (buffer[pos] == ' ' || buffer[pos] == '\t')) - ++pos; + ++pos; if (buffer[pos] != ':') { switch (ctx.getHeaderParseErrorRecoveryMethod()) { - case vmime::headerParseRecoveryMethod::SKIP_LINE: - // Humm...does not seem to be a valid header line. - // Skip this error and advance to the next line - pos = nameStart; + case vmime::headerParseRecoveryMethod::SKIP_LINE: + // Humm...does not seem to be a valid header line. + // Skip this error and advance to the next line + pos = nameStart; - while (pos < end && buffer[pos] != '\n') - ++pos; + while (pos < end && buffer[pos] != '\n') + ++pos; - if (pos < end && buffer[pos] == '\n') - ++pos; - break; + if (pos < end && buffer[pos] == '\n') + ++pos; + break; -// case vmime::headerParseRecoveryMethod::APPEND_TO_PREVIOUS_LINE: -// // TODO Implement this... -// break; +// case vmime::headerParseRecoveryMethod::APPEND_TO_PREVIOUS_LINE: +// // TODO Implement this... +// break; - case vmime::headerParseRecoveryMethod::ASSUME_END_OF_HEADERS: - return null; - break; - } + case vmime::headerParseRecoveryMethod::ASSUME_END_OF_HEADERS: + return null; + break; + } } else {