Merge pull request #7016 from tk0miya/7006_MenuSelection_BULLET_CHARACTER

refactor: Make a bullet character for :menuselection: a constant
This commit is contained in:
Takeshi KOMIYA 2020-01-19 23:07:33 +09:00 committed by GitHub
commit 334d23f880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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