Remove unneeded test "if 'ids':" from previous commit.

modified:   sphinx/writers/latex.py
This commit is contained in:
jfbu 2016-04-03 16:50:47 +02:00
parent a1647b6bb9
commit a124a39625

View File

@ -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'):