mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Remove unneeded test "if 'ids':" from previous commit.
modified: sphinx/writers/latex.py
This commit is contained in:
parent
a1647b6bb9
commit
a124a39625
@ -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'):
|
||||
|
Loading…
Reference in New Issue
Block a user