diff --git a/space/spaceparser.cpp b/space/spaceparser.cpp index 37d098e..c5798a0 100755 --- a/space/spaceparser.cpp +++ b/space/spaceparser.cpp @@ -75,10 +75,10 @@ void SpaceParser::SetDefault() list_start = '('; list_end = ')'; list_delimiter = ','; - split_single = false; + split_single = true; skip_empty = false; use_escape_char = true; - input_as_utf8 = false; + input_as_utf8 = true; } @@ -262,9 +262,6 @@ void SpaceParser::SpaceEnds() space = space->parent; ReadChar(); // skipping closing space character ')' SkipWhite(); - - if( lastc != -1 && lastc != '\n' ) - status = syntax_error; } } @@ -413,6 +410,7 @@ void SpaceParser::ReadTokenSingle(bool white_delimit, bool new_line_delimit, int SkipLine(); if( lastc == -1 || + lastc == list_end || (delimit1 != -1 && lastc == delimit1) || (delimit2 != -1 && lastc == delimit2) || (white_delimit && IsWhite(lastc)) || @@ -473,10 +471,6 @@ void SpaceParser::ReadValueList() { ReadChar(); // skipping the last list character ')' SkipWhite(); - - // there cannot be anything after ')' character - if( lastc != -1 && lastc != '\n' ) - status = syntax_error; } else { @@ -491,9 +485,6 @@ void SpaceParser::ReadValueSingle() ReadToken(false, true, -1, -1); value.push_back(token); SkipWhite(); - - if( lastc != -1 && lastc != '\n' ) - status = syntax_error; }