diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-05-23 16:55:24 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-05-23 16:55:24 +0300 |
commit | 638b197d25ad0530763572d8de2c4615643fe150 (patch) | |
tree | 462f00cd658358c39d875fcc07a9d38e09ec18d9 /sphinx | |
parent | a1293e28251dcabdb9f9a42fc04a138904e545bc (diff) |
Fix #7701: LaTeX: Anonymous indirect target causes duplicated labels
Diffstat (limited to 'sphinx')
-rw-r--r-- | sphinx/writers/latex.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index e3ddedccf..6e7f5021b 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -1431,6 +1431,8 @@ class LaTeXTranslator(SphinxTranslator): if 'refuri' in node: return + if 'anonymous' in node: + return if node.get('refid'): prev_node = get_prev_node(node) if isinstance(prev_node, nodes.reference) and node['refid'] == prev_node['refid']: |