Skip to content

Commit

Permalink
Merge pull request #10647 from mitya57/latex-index-keys
Browse files Browse the repository at this point in the history
LaTeX writer: add \label's for all index keys, not just first
  • Loading branch information
tk0miya committed Jul 10, 2022
2 parents 9940da0 + da8f7d9 commit 835b736
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sphinx/writers/latex.py
Expand Up @@ -687,10 +687,10 @@ def _depart_signature_line(self, node: Element) -> None:
self.body.append('}')

def visit_desc_signature(self, node: Element) -> None:
hyper = ''
if node.parent['objtype'] != 'describe' and node['ids']:
hyper = self.hypertarget(node['ids'][0])
else:
hyper = ''
for id in node['ids']:
hyper += self.hypertarget(id)
self.body.append(hyper)
if not self.in_desc_signature:
self.in_desc_signature = True
Expand Down

0 comments on commit 835b736

Please sign in to comment.