From ab2efc0c5c6e4916dcb60fe4b5857b5eb3bad28e Mon Sep 17 00:00:00 2001 From: Emily <35015090+EmilyV99@users.noreply.github.com> Date: Tue, 8 Apr 2025 12:06:19 -0400 Subject: [PATCH] kvui: actually fix [u] and [/u] appearing in copied hints (#4842) --- kvui.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kvui.py b/kvui.py index 3837ab08..81e3876f 100644 --- a/kvui.py +++ b/kvui.py @@ -589,8 +589,7 @@ class HintLabel(RecycleDataViewBehavior, MDBoxLayout): if self.entrance_text != "Vanilla" else "", ". (", self.status_text.lower(), ")")) temp = MarkupLabel(text).markup - text = "".join( - part for part in temp if not part.startswith(("[color", "[/color]", "[ref=", "[/ref]"))) + text = "".join(part for part in temp if not part.startswith("[")) Clipboard.copy(escape_markup(text).replace("&", "&").replace("&bl;", "[").replace("&br;", "]")) return self.parent.select_with_touch(self.index, touch) else: