Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Armin Wehrfritz
Xdmf
Commits
65ac92d8
Commit
65ac92d8
authored
May 07, 2014
by
Kenneth Leiter
Browse files
ENH: Trim whitespace of XML content - to be friendlier to hand-edited files.
parent
3e4a11fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/XdmfArray.cpp
View file @
65ac92d8
...
...
@@ -21,8 +21,9 @@
/* */
/*****************************************************************************/
#include
<boost/
tokenizer
.hpp>
#include
<boost/
algorithm/string/trim
.hpp>
#include
<boost/assign.hpp>
#include
<boost/tokenizer.hpp>
#include
<limits>
#include
<sstream>
#include
<utility>
...
...
@@ -1030,7 +1031,8 @@ XdmfArray::populateItem(const std::map<std::string, std::string> & itemPropertie
unsigned
int
contentIndex
;
const
std
::
string
&
contentVal
=
content
->
second
;
// trim content of whitespace
const
std
::
string
contentVal
=
boost
::
algorithm
::
trim_copy
(
content
->
second
);
std
::
vector
<
std
::
string
>
contentVals
;
...
...
@@ -1108,7 +1110,6 @@ XdmfArray::populateItem(const std::map<std::string, std::string> & itemPropertie
std
::
string
dataSetPath
=
contentVals
[
contentIndex
].
substr
(
colonLocation
+
1
);
hdf5Path
=
getFullHeavyDataPath
(
hdf5Path
,
itemProperties
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment