From a124a396257310d308a7298b89aa7bf6583c1405 Mon Sep 17 00:00:00 2001 From: jfbu Date: Sun, 3 Apr 2016 16:50:47 +0200 Subject: [PATCH] Remove unneeded test "if 'ids':" from previous commit. modified: sphinx/writers/latex.py --- sphinx/writers/latex.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index 801726f4e..544fb60b6 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -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'):