Merge branch 'development' into LTS_development

This commit is contained in:
Thulinma 2020-03-12 15:32:30 +01:00
commit 7b52f0cd92

View file

@ -178,7 +178,7 @@ static std::string read_string(char separator, std::istream &fromstream){
while (fromstream.good()){ while (fromstream.good()){
char c; char c;
fromstream.get(c); fromstream.get(c);
if (c == '\\'){ if (!escaped && c == '\\'){
escaped = true; escaped = true;
continue; continue;
} }
@ -189,6 +189,7 @@ static std::string read_string(char separator, std::istream &fromstream){
} }
switch (c){ switch (c){
case 'b': out += '\b'; break; case 'b': out += '\b'; break;
case '\\': out += '\\'; break;
case 'f': out += '\f'; break; case 'f': out += '\f'; break;
case 'n': out += '\n'; break; case 'n': out += '\n'; break;
case 'r': out += '\r'; break; case 'r': out += '\r'; break;