mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-06-06 14:05:21 -04:00
Fix sphinx deprecation warning
This commit is contained in:
+2
-2
@@ -339,9 +339,9 @@ def add_html_context(app, pagename, templatename, context, *args):
|
||||
|
||||
|
||||
def guilabel_role(typ, rawtext, text, *args, **kwargs):
|
||||
from sphinx.roles import menusel_role
|
||||
from sphinx.roles import GUILabel
|
||||
text = text.replace(u'->', u'\N{THIN SPACE}\N{RIGHTWARDS ARROW}\N{THIN SPACE}')
|
||||
return menusel_role(typ, rawtext, text, *args, **kwargs)
|
||||
return GUILabel()(typ, rawtext, text, *args, **kwargs)
|
||||
|
||||
|
||||
def setup_man_pages(app):
|
||||
|
||||
Reference in New Issue
Block a user