summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenji Dial <benji@benjidial.net>2023-05-30 00:38:13 -0400
committerBenji Dial <benji@benjidial.net>2023-05-30 00:38:13 -0400
commitfbabd9f8019cb5c9ca0736182eac40ea79d295e9 (patch)
tree2c83cf3fb743bb040ef063219029fd7ec484a1f2
parent28e855f5424df395dd1ba98354a53536d4598d47 (diff)
downloadlib94-fbabd9f8019cb5c9ca0736182eac40ea79d295e9.tar.gz
trim spaces on labels
-rw-r--r--lib94/warrior.cpp2
1 files changed, 1 insertions, 1 deletions
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))