[CTI] Strip leading whitespace when converting CTI strings
Leading whitespace would normally result in a Python IndentationError.
This commit is contained in:
parent
b0e5b13913
commit
f3eaef1675
1 changed files with 1 additions and 1 deletions
|
|
@ -289,7 +289,7 @@ XML_Node* Application::get_XML_from_string(const std::string& text)
|
||||||
if (text.substr(start,1) == "<") {
|
if (text.substr(start,1) == "<") {
|
||||||
s << text;
|
s << text;
|
||||||
} else {
|
} else {
|
||||||
s << ctml::ct_string2ctml_string(text);
|
s << ctml::ct_string2ctml_string(text.substr(start));
|
||||||
}
|
}
|
||||||
entry.first = new XML_Node();
|
entry.first = new XML_Node();
|
||||||
entry.first->build(s);
|
entry.first->build(s);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue