Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
Xdmf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
24
Issues
24
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xdmf
Xdmf
Commits
65ac92d8
Commit
65ac92d8
authored
May 07, 2014
by
Kenneth Leiter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: Trim whitespace of XML content - to be friendlier to hand-edited files.
parent
3e4a11fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
core/XdmfArray.cpp
core/XdmfArray.cpp
+4
-3
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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