Commit 02ea5125 authored by Andrew J. Burns (Cont's avatar Andrew J. Burns (Cont

Clean excess whitespace from content pulled from XML

parent 4a486e13
...@@ -231,7 +231,9 @@ public: ...@@ -231,7 +231,9 @@ public:
} }
} }
if(!whitespace) { if(!whitespace) {
itemProperties.insert(std::make_pair("Content", content)); std::string contentString(content);
boost::algorithm::trim(contentString);
itemProperties.insert(std::make_pair("Content", contentString));
itemProperties.insert(std::make_pair("XMLDir", mXMLDir)); itemProperties.insert(std::make_pair("XMLDir", mXMLDir));
break; break;
} }
......
Markdown is supported
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