Merge pull request #7011 from tk0miya/refactor_glossary5

Fix node_id is not assigned on translation
This commit is contained in:
Takeshi KOMIYA 2020-01-11 02:41:30 +09:00 committed by GitHub
commit f7c9049e9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -254,7 +254,7 @@ def make_glossary_term(env: "BuildEnvironment", textnodes: Iterable[Node], index
if node_id:
# node_id is given from outside (mainly i18n module), use it forcedly
pass
term['ids'].append(node_id)
elif document:
node_id = make_id(env, document, 'term', termtext)
term['ids'].append(node_id)