Commit 86113671 authored by Andrew Burns's avatar Andrew Burns

Merge branch 'master' into 'master'

Clean excess whitespace from content pulled from XML

Another attempt to fix an issue involving improperly formed strings while reading.

@demarle 

See merge request !16
parents 4a486e13 02ea5125
......@@ -231,7 +231,9 @@ public:
}
}
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));
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