mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-15 01:42:12 -05:00
Remove unneeded test "if 'ids':" from previous commit.
modified: sphinx/writers/latex.py
This commit is contained in:
1 parent
a1647b6bb9
commit
a124a39625
1 file changed
+1
-2
@@ -1995,8 +1995,7 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
||||
# suppress with anchor=False \phantomsection generation
|
||||
ids += self.hypertarget(node['ids'][0], anchor=False)
|
||||
self.body.append('\n')
|
||||
if ids:
|
||||
self.context.append(ids) # will be used in visit_caption
|
||||
self.context.append(ids) # will be used in visit_caption
|
||||
|
||||
def depart_container(self, node):
|
||||
if node.get('literal_block'):
|
||||
|
||||
Reference in new issue
Block a user