1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

a few erm interpretter unit tests and fixes (#688)

This commit is contained in:
Andrii Danylchenko
2021-03-27 14:47:44 +02:00
committed by GitHub
parent 483a4689ce
commit bd31a87133
5 changed files with 155 additions and 3 deletions

View File

@ -81,11 +81,12 @@ std::string CERMPreprocessor::retrieveCommandLine()
if(openedString)
{
wholeCommand += "\\n";
wholeCommand += "\n";
if(dash != std::string::npos)
{
wholeCommand += line.substr(0, dash);
line.erase(0,dash);
wholeCommand += line.substr(0, dash + 1);
line.erase(0,dash + 1);
openedString = false;
}
else //no closing marker -> the whole line is further part of string
{