Commit f72492c7 authored by Jean-Francois Dockes's avatar Jean-Francois Dockes
Browse files

simplified protocolinfo reading

parent bae4dc14
......@@ -224,10 +224,8 @@ static bool read_protocolinfo(const string& fn, bool enableL16, string& out)
// eof ends with a backslash, or there is no final \n
eof = true;
}
trimstring(line, " \t\n\r");
if (line[line.size()-1] != ',') {
line += ",";
}
trimstring(line, " \t\n\r,");
line += ',';
if (enableL16 && line[0] == '@') {
line = regsub1("@ENABLEL16@", line, "");
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment