[CTI] Strip leading whitespace when converting CTI strings

Leading whitespace would normally result in a Python IndentationError.
This commit is contained in:
Ray Speth 2015-04-20 18:22:56 -04:00
parent b0e5b13913
commit f3eaef1675

View file

@ -289,7 +289,7 @@ XML_Node* Application::get_XML_from_string(const std::string& text)
if (text.substr(start,1) == "<") {
s << text;
} else {
s << ctml::ct_string2ctml_string(text);
s << ctml::ct_string2ctml_string(text.substr(start));
}
entry.first = new XML_Node();
entry.first->build(s);