refactor: Make a bullet character for :menuselection: a constant

refs: #7006
This commit is contained in:
Takeshi KOMIYA 2020-01-11 11:21:09 +09:00
parent d82edef388
commit af27f7d545

View File

@ -394,8 +394,10 @@ class GUILabel(SphinxRole):
class MenuSelection(GUILabel):
BULLET_CHARACTER = '\N{TRIANGULAR BULLET}'
def run(self) -> Tuple[List[Node], List[system_message]]:
self.text = self.text.replace('-->', '\N{TRIANGULAR BULLET}')
self.text = self.text.replace('-->', self.BULLET_CHARACTER)
return super().run()