From fbabd9f8019cb5c9ca0736182eac40ea79d295e9 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Tue, 30 May 2023 00:38:13 -0400 Subject: trim spaces on labels --- lib94/warrior.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib94/warrior.cpp b/lib94/warrior.cpp index e0d7192..e5b0095 100644 --- a/lib94/warrior.cpp +++ b/lib94/warrior.cpp @@ -352,7 +352,7 @@ namespace lib94 { if (colon == std::string::npos) break; - std::string label = line.substr(0, colon); + std::string label = trim_spaces(line.substr(0, colon)); line = line.substr(colon + 1); if (!valid_label(label)) -- cgit v1.2.3