Skip to content
Snippets Groups Projects
Commit a21c37e7 authored by Carl Philipp Klemm's avatar Carl Philipp Klemm
Browse files

EisSpectra: strip witespace and "" from label names

parent ecbffc05
No related branches found
No related tags found
No related merge requests found
...@@ -215,6 +215,11 @@ EisSpectra EisSpectra::loadFromStream(std::istream& stream) ...@@ -215,6 +215,11 @@ EisSpectra EisSpectra::loadFromStream(std::istream& stream)
{ {
std::getline(stream, line); std::getline(stream, line);
out.labelNames = tokenizeBinaryIgnore(line, ',', '"', '\\'); out.labelNames = tokenizeBinaryIgnore(line, ',', '"', '\\');
for(std::string& label : out.labelNames)
{
label = stripWhitespace(label);
stripQuotes(label);
}
continue; continue;
} }
else if(line.starts_with("labels")) else if(line.starts_with("labels"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment