diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-05-29 19:40:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-29 19:40:03 +0300 |
commit | 339e3a9f3d09acec831cb3f5e16a0ec1f70d6559 (patch) | |
tree | acbdd75ae2ef86018e0254f4dcfc52d402bfc071 /sphinx | |
parent | 03559f057422da6b6a1d518cb58584b1e834a5fd (diff) | |
parent | 28fe0d639974c87063abce31ff38134bc4c568a2 (diff) |
Merge pull request #7714 from tk0miya/7701_anonymous_indirect_target
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']: |