mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00
kvui: actually fix [u] and [/u] appearing in copied hints (#4842)
This commit is contained in:
3
kvui.py
3
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:
|
||||
|
Reference in New Issue
Block a user