mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Use `str.format_map
` (#12534)
This commit is contained in:
parent
fa8c81a634
commit
1cc9699b2d
@ -374,7 +374,7 @@ class Manpage(ReferenceRole):
|
|||||||
inner: nodes.Node
|
inner: nodes.Node
|
||||||
text = self.title[1:] if self.disabled else self.title
|
text = self.title[1:] if self.disabled else self.title
|
||||||
if not self.disabled and self.config.manpages_url:
|
if not self.disabled and self.config.manpages_url:
|
||||||
uri = self.config.manpages_url.format(**info)
|
uri = self.config.manpages_url.format_map(info)
|
||||||
inner = nodes.reference('', text, classes=[self.name], refuri=uri)
|
inner = nodes.reference('', text, classes=[self.name], refuri=uri)
|
||||||
else:
|
else:
|
||||||
inner = nodes.Text(text)
|
inner = nodes.Text(text)
|
||||||
|
Loading…
Reference in New Issue
Block a user