Commit 34ae8e00 authored by Dominik Arominski's avatar Dominik Arominski
Browse files

Added sanitizer to log values, to replace commas with semicolons

parent a8ce5199
......@@ -543,7 +543,8 @@ std::pair<std::string, std::string> SaveAscii2::sampleLogValueUnit(const std::st
void SaveAscii2::writeFileHeader(const std::vector<std::string> &logList, std::ofstream &outputFile) {
for (const auto &logName : logList) {
const std::pair<std::string, std::string> readLog = sampleLogValueUnit(logName);
outputFile << logName << m_sep << readLog.first << m_sep << readLog.second << '\n';
auto logValue = boost::replace_all_copy(readLog.second, ",", ";");
outputFile << logName << m_sep << readLog.first << m_sep << logValue << '\n';
}
outputFile << '\n';
}
......
Supports Markdown
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