diff options
| author | shimizukawa <shimizukawa@gmail.com> | 2013-02-04 23:06:44 +0900 |
|---|---|---|
| committer | shimizukawa <shimizukawa@gmail.com> | 2013-02-04 23:06:44 +0900 |
| commit | edde8efbfe2f5b45ff767b395d846fe610c0ba95 (patch) | |
| tree | 0c08163bb32c30369f448cf7eeea9b1eb2874836 /sphinx | |
| parent | 557979af85df90414188e2149686ea46e9102e5a (diff) | |
| download | sphinx-edde8efbfe2f5b45ff767b395d846fe610c0ba95.tar.gz | |
remove unusable 'SEVERE: Duplicate ID' message for footnote that the translation node has been recognized as a duplicate.
Diffstat (limited to 'sphinx')
| -rw-r--r-- | sphinx/environment.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/environment.py b/sphinx/environment.py index 2e70569b..f0f51fdd 100644 --- a/sphinx/environment.py +++ b/sphinx/environment.py @@ -262,6 +262,8 @@ class Locale(Transform): 'translated message', node) for old, new in zip(old_foot_refs, new_foot_refs): new['ids'] = old['ids'] + for id in new['ids']: + self.document.ids[id] = new self.document.autofootnote_refs.remove(old) self.document.note_autofootnote_ref(new) |
