Commit 75b8639b authored by Kenneth Leiter's avatar Kenneth Leiter

Remove whitespace trimming of read XML content.

Removes a boost call. Could be written in C++11, but not sure
of the rationale of removing the whitespace and it did not affect
parent ed16789d
......@@ -25,8 +25,6 @@
#include <libxml/uri.h>
#include <libxml/xpointer.h>
#include <libxml/xmlreader.h>
#include <boost/algorithm/string/trim.hpp>
#include <boost/tokenizer.hpp>
#include <cstring>
#include <map>
#include <sstream>
......@@ -231,9 +229,7 @@ public:
if(!whitespace) {
std::string contentString(content);
itemProperties.insert(std::make_pair("Content", contentString));
itemProperties.insert(std::make_pair("Content", content));
itemProperties.insert(std::make_pair("XMLDir", mXMLDir));
  • I recall issues when xdmf3 was being developed where whitespace in .xdmf files was breaking VTK level tests of XDMF. I don't know yet if this particular spot will actually matter in practice but it may and we'll find out when the VTK level tests of XDMF IO run.

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