Commit dfdc7ff6 authored by LEFEBVREJP email's avatar LEFEBVREJP email
Browse files

Added removal of carriage return from csvfile.

parent 662b0b2e
Pipeline #149649 passed with stages
in 18 minutes and 11 seconds
......@@ -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();
......
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