mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #7016 from tk0miya/7006_MenuSelection_BULLET_CHARACTER
refactor: Make a bullet character for :menuselection: a constant
This commit is contained in:
commit
334d23f880
@ -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()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user