From ce697daca67267fd03031634e0728ec66fe8ca36 Mon Sep 17 00:00:00 2001 From: shimizukawa Date: Sun, 1 Mar 2015 07:08:53 +0900 Subject: [PATCH] Closes #1745: latex builder cause maximum recursion depth exceeded when a footnote has a footnote mark itself. --- CHANGES | 2 ++ sphinx/writers/latex.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 77e15eaf2..ad7cb7bb0 100644 --- a/CHANGES +++ b/CHANGES @@ -21,6 +21,8 @@ Bugs fixed * 1.3b3 change breaks a previous gettext output that contains duplicated msgid such as "foo bar" and "version changes in 1.3: foo bar". +* #1745: latex builder cause maximum recursion depth exceeded when a + footnote has a footnote mark itself. Release 1.3b3 (released Feb 24, 2015) diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index 15eb4fc41..b92f84a0c 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -1388,8 +1388,8 @@ class LaTeXTranslator(nodes.NodeVisitor): raise UnsupportedError('%s:%s: footnotes in float captions ' 'are not supported by LaTeX' % (self.curfilestack[-1], node.line)) - footnode.walkabout(self) self.footnotestack[-1][num][1] = True + footnode.walkabout(self) raise nodes.SkipChildren def depart_footnote_reference(self, node): pass