Error when translating paragraph with autonumbered footnote

masklinn avatarmasklinn created an issue

Even if the footnote is (as fast as I can see) correctly copied from the source to the translation, a footnote of the style [#footnote]_ will generate the following message (apparently from deep into docutils):

ERROR: Too many autonumbered footnote references: only 0 corresponding footnotes available.

The result will be a footnote which "works" (it links correctly) but is not numbered in the body e.g.

some text [3]

will instead appear as

some text []

Attaching a test case project with a fake-latvian translation, compile with

sphinx-build.py -Dlanguage=lv footnotes html

to see the issue.

I can reproduce it with both tip and pypi's 1.2b1

Comments (1)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.