make sure that all parsers are finished

This commit is contained in:
M. Petra Baranski
2018-01-18 19:09:10 +01:00
parent 7963d90603
commit 9a9774f904
2 changed files with 13 additions and 1 deletions

View File

@@ -93,6 +93,18 @@ public:
}
}
// make sure, that all parsers are finished
if (currentBlockParser)
{
std::string emptyLine = "";
currentBlockParser->AddLine(emptyLine);
if (currentBlockParser->IsFinished())
{
result += currentBlockParser->GetResult().str();
currentBlockParser = nullptr;
}
}
return result;
}