From a533b5f51af03929f642bc530691b34475d0a9c0 Mon Sep 17 00:00:00 2001 From: HJfod <60038575+HJfod@users.noreply.github.com> Date: Mon, 29 Jul 2024 22:06:14 +0300 Subject: [PATCH] actually technically that last one didn't match og behaviour even --- loader/src/ui/nodes/MDTextArea.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader/src/ui/nodes/MDTextArea.cpp b/loader/src/ui/nodes/MDTextArea.cpp index 6c245535..da766a4f 100644 --- a/loader/src/ui/nodes/MDTextArea.cpp +++ b/loader/src/ui/nodes/MDTextArea.cpp @@ -84,7 +84,7 @@ Result colorForIdentifier(std::string const& tag) { } // Support the old form of else if (tag.find(' ') != std::string::npos) { - return cc3bFromHexString(tag.substr(tag.find(' ') + 1)); + return cc3bFromHexString(string::trim(tag.substr(tag.find(' ') + 1))); } else { auto colorText = tag.substr(1);