Closes #1745: latex builder cause maximum recursion depth exceeded when a footnote has a footnote mark itself.

This commit is contained in:
shimizukawa
2015-03-01 07:08:53 +09:00
parent cdc4f5d8bb
commit ce697daca6
2 changed files with 3 additions and 1 deletions

View File

@@ -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)

View File

@@ -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