From f3eaef16755d14b586d4c8d591fbf08d178e1d14 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Mon, 20 Apr 2015 18:22:56 -0400 Subject: [PATCH] [CTI] Strip leading whitespace when converting CTI strings Leading whitespace would normally result in a Python IndentationError. --- src/base/application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/application.cpp b/src/base/application.cpp index 2d7688e90..8d51861c7 100644 --- a/src/base/application.cpp +++ b/src/base/application.cpp @@ -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);