Fix #3685: AttributeError when using 3rd party domains

This commit is contained in:
Takeshi KOMIYA committed 2017-05-03 01:07:46 +09:00
1 parent efb544898b
commit 87b30cc3cb
2 files changed
+3 -1

No files matched your search

+1
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
--------
+2 -1
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)