Fix #3685: AttributeError when using 3rd party domains

This commit is contained in:
Takeshi KOMIYA 2017-05-03 01:07:20 +09:00
parent efb544898b
commit 87b30cc3cb
2 changed files with 3 additions and 1 deletions

View File

@ -19,6 +19,7 @@ Bugs fixed
* #3657: EPUB builder crashes if document startswith genindex exists
* #3588: No compact (p tag) html output in the i18n document build even when
:confval:`html_compact_lists` is True.
* #3685: AttributeError when using 3rd party domains
Testing
--------

View File

@ -310,7 +310,8 @@ class DocFieldTransformer(object):
else:
fieldtype, content = entry
fieldtypes = types.get(fieldtype.name, {})
env = self.directive.state.document.settings.env
new_list += fieldtype.make_field(fieldtypes, self.directive.domain,
content, env=self.directive.env)
content, env=env)
node.replace_self(new_list)