diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-01-10 23:49:12 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-01-10 23:49:12 +0900 |
commit | 410b8e03f3c5441ff6b10bd28d1b0fb208ed9543 (patch) | |
tree | 4b5c698e46f7137b6ce6d4c752594139c63bb793 /sphinx/writers/manpage.py | |
parent | d9569a84a28b4720f9adf69ef9778961585ea19a (diff) | |
download | sphinx-git-410b8e03f3c5441ff6b10bd28d1b0fb208ed9543.tar.gz |
refactor: Access config object from self directly in writers
Diffstat (limited to 'sphinx/writers/manpage.py')
-rw-r--r-- | sphinx/writers/manpage.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/writers/manpage.py b/sphinx/writers/manpage.py index 63a2060ca..9ef429ba3 100644 --- a/sphinx/writers/manpage.py +++ b/sphinx/writers/manpage.py @@ -296,8 +296,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([ |