Closes #1732. Localized table caption raises exception.

It is potentially bug that appears by a change 7cd470f59a
This commit is contained in:
shimizukawa 2015-02-21 12:23:26 +09:00
parent 334c4ebd9b
commit 95d6c68371
2 changed files with 27 additions and 20 deletions

View File

@ -38,6 +38,7 @@ Bugs fixed
* bizstyle theme: all breadcrumb items become 'Top' on some mobile browser
(iPhone5s safari).
* #1722: restore ``toctree()`` template function behavior that was changed at 1.3b1.
* #1732: i18n: localized table caption raises exception.
Release 1.3b2 (released Dec 5, 2014)

View File

@ -248,14 +248,20 @@ class Locale(Transform):
# * if explicit: _id is label. title node need another id.
# * if not explicit:
#
# * _id is None:
# * if _id is None:
#
# _id is None means:
#
# 1. _id was not provided yet.
#
# 2. _id was duplicated.
#
# _id is None means _id was duplicated.
# old_name entry still exists in nameids and
# nametypes for another duplicated entry.
#
# * _id is provided: bellow process
if not explicit and _id:
# * if _id is provided: bellow process
if _id:
if not explicit:
# _id was not duplicated.
# remove old_name entry from document ids database
# to reuse original _id.