multiline fix
This commit is contained in:
@@ -759,9 +759,9 @@ void PIConfig::parse() {
|
||||
comm = "";
|
||||
}
|
||||
|
||||
if (str.endsWith("\\")) {
|
||||
if (str.endsWith(" \\")) {
|
||||
isMultiline = true;
|
||||
str.cutRight(1).trim();
|
||||
str.cutRight(2).trim();
|
||||
} else
|
||||
isMultiline = false;
|
||||
|
||||
@@ -769,10 +769,11 @@ void PIConfig::parse() {
|
||||
wasMultiline = false;
|
||||
if (ce) {
|
||||
ce->_value += str;
|
||||
ce->_all += "\\\n" + all;
|
||||
ce->_all += " \\\n" + all;
|
||||
}
|
||||
str.clear();
|
||||
}
|
||||
} else
|
||||
ce = 0;
|
||||
wasMultiline = isMultiline;
|
||||
|
||||
//piCout << "[PIConfig] str" << str.size() << str << str.toUTF8();
|
||||
|
||||
Reference in New Issue
Block a user