Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2022-02-13 14:19:41 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2022-02-13 14:20:42 +0300
commit01d06f9ffe0cd2388156fb53287496f45165519c (patch)
treec2f0425a129cc078d5c538de0cf186cc2e16a1a2 /sphinx/writers/latex.py
parent6f0a8f3516063ebd3cbef503832f65e0f8adcc72 (diff)
Fix #10175: LaTeX: named footnote ref is linked to an incorrect footnote
A named footnote reference will be converted to a hyperlink to an incorrect footnote if the name is also used in the different document.
Diffstat (limited to 'sphinx/writers/latex.py')
-rw-r--r--sphinx/writers/latex.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py
index a2905e807..289669549 100644
--- a/sphinx/writers/latex.py
+++ b/sphinx/writers/latex.py
@@ -571,6 +571,7 @@ class LaTeXTranslator(SphinxTranslator):
def visit_start_of_file(self, node: Element) -> None:
self.curfilestack.append(node['docname'])
+ self.body.append(CR + r'\sphinxstepscope' + CR)
def depart_start_of_file(self, node: Element) -> None:
self.curfilestack.pop()