diff --git a/NouVeL/NVL.cpp b/NouVeL/NVL.cpp index c52938c..0abdf13 100644 --- a/NouVeL/NVL.cpp +++ b/NouVeL/NVL.cpp @@ -221,11 +221,18 @@ namespace NVL else { // early return if string is empty, this should only happen if calling from an object (not a call) + bool only_spaces = true; for (auto& c : std::get(content)) { - if (!isspace(c)) - return; + if (!isspace(c)) + { + only_spaces = false; + break; + } } + if (only_spaces) + return; + // default case if content does not match keywords this_object.Value = std::get(content); }