Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LEFEBVREJP email
radix
Commits
7911242f
Commit
7911242f
authored
Jun 11, 2021
by
LEFEBVREJP email
Browse files
Merge branch 'csvfile-carriage-return' into 'master'
csvfile-carriage-return See merge request
!108
parents
662b0b2e
dfdc7ff6
Pipeline
#149652
passed with stages
in 19 minutes and 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
radixio/csvfile.cc
View file @
7911242f
...
...
@@ -75,6 +75,8 @@ bool radix::CSVFile::data(std::vector<std::vector<std::string>> &data) const
std
::
string
line
;
while
(
std
::
getline
(
in
,
line
))
{
// remove trailing carriage return
line
.
erase
(
line
.
find_last_not_of
(
"
\r
"
)
+
1
);
data
.
push_back
(
row
(
line
));
}
in
.
close
();
...
...
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