From a21c37e70f060085515b87fe66ce76b4e92449e6 Mon Sep 17 00:00:00 2001 From: Carl Philipp Klemm <philipp@uvos.xyz> Date: Mon, 15 Jul 2024 15:27:10 +0200 Subject: [PATCH] EisSpectra: strip witespace and "" from label names --- spectra.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spectra.cpp b/spectra.cpp index a9af27b..1c19fde 100644 --- a/spectra.cpp +++ b/spectra.cpp @@ -215,6 +215,11 @@ EisSpectra EisSpectra::loadFromStream(std::istream& stream) { std::getline(stream, line); out.labelNames = tokenizeBinaryIgnore(line, ',', '"', '\\'); + for(std::string& label : out.labelNames) + { + label = stripWhitespace(label); + stripQuotes(label); + } continue; } else if(line.starts_with("labels")) -- GitLab