summaryrefslogtreecommitdiff
path: root/sphinx/writers/manpage.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2021-01-16 21:51:46 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2021-01-16 21:51:46 +0900
commit30f8640bab786b28e2fbc3a12a4cf212e6f953d1 (patch)
treef5cf23900a7bc509fe970262195995ddc526fda1 /sphinx/writers/manpage.py
parent5460ea103bd91ce910e50e11e05c1e5340c2a9e0 (diff)
parent7c340e1c1c43f173f11efc14feb29cd08cedb995 (diff)
downloadsphinx-git-30f8640bab786b28e2fbc3a12a4cf212e6f953d1.tar.gz
Merge branch '3.x'
Diffstat (limited to 'sphinx/writers/manpage.py')
-rw-r--r--sphinx/writers/manpage.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/writers/manpage.py b/sphinx/writers/manpage.py
index b5034c8e7..917a71b3b 100644
--- a/sphinx/writers/manpage.py
+++ b/sphinx/writers/manpage.py
@@ -287,8 +287,7 @@ class ManualPageTranslator(SphinxTranslator, BaseTranslator):
if uri.startswith('mailto:') or uri.startswith('http:') or \
uri.startswith('https:') or uri.startswith('ftp:'):
# if configured, put the URL after the link
- if self.builder.config.man_show_urls and \
- node.astext() != uri:
+ if self.config.man_show_urls and node.astext() != uri:
if uri.startswith('mailto:'):
uri = uri[7:]
self.body.extend([