mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -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"
|
if self.entrance_text != "Vanilla"
|
||||||
else "", ". (", self.status_text.lower(), ")"))
|
else "", ". (", self.status_text.lower(), ")"))
|
||||||
temp = MarkupLabel(text).markup
|
temp = MarkupLabel(text).markup
|
||||||
text = "".join(
|
text = "".join(part for part in temp if not part.startswith("["))
|
||||||
part for part in temp if not part.startswith(("[color", "[/color]", "[ref=", "[/ref]")))
|
|
||||||
Clipboard.copy(escape_markup(text).replace("&", "&").replace("&bl;", "[").replace("&br;", "]"))
|
Clipboard.copy(escape_markup(text).replace("&", "&").replace("&bl;", "[").replace("&br;", "]"))
|
||||||
return self.parent.select_with_touch(self.index, touch)
|
return self.parent.select_with_touch(self.index, touch)
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user