mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix flake8 violation
This commit is contained in:
parent
5e48ac9b4f
commit
f0206f77e4
@ -1350,7 +1350,8 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
||||
id = node.get('refuri', '')[1:].replace('#', ':')
|
||||
|
||||
ref = '\\ref{%s}' % self.idescape(id)
|
||||
title = text_type(node.get('title', '%s')).translate(tex_escape_map).replace('\\%s', '%s')
|
||||
title = node.get('title', '%s')
|
||||
title = text_type(title).translate(tex_escape_map).replace('\\%s', '%s')
|
||||
hyperref = '\\hyperref[%s]{%s}' % (self.idescape(id), title % ref)
|
||||
self.body.append(hyperref)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user