kvui: fix [u] and [/u] appearing in copied hints (#4794)

This commit is contained in:
Fabian Dill
2025-04-03 09:22:02 +02:00
committed by GitHub
parent d07f36dedd
commit 7265468e8d

View File

@@ -296,7 +296,7 @@ class SelectableLabel(RecycleDataViewBehavior, TooltipLabel):
else:
# Not a fan of the following few lines, but they work.
temp = MarkupLabel(text=self.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("["))
cmdinput = App.get_running_app().textinput
if not cmdinput.text:
input_text = get_input_text_from_response(text, App.get_running_app().last_autofillable_command)