Skip to content

Commit

Permalink
LaTeX writer: add \label's for all index keys, not just first
Browse files Browse the repository at this point in the history
This change was originally added in coq project, but I am forwarding
it here at request of the patch author.

See coq/coq#12361 for the issue description.
  • Loading branch information
mitya57 committed Jul 7, 2022
1 parent 1f21e97 commit da8f7d9
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 da8f7d9

Please sign in to comment.