Merge pull request #8869 from tk0miya/8860_recipe_tutorial

Fix #8860: doc: recipe directive crashes with AttributeError
This commit is contained in:
Takeshi KOMIYA 2021-02-12 22:33:27 +09:00 committed by GitHub
commit f0eb2cca87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ class RecipeDirective(ObjectDescription):
def add_target_and_index(self, name_cls, sig, signode): def add_target_and_index(self, name_cls, sig, signode):
signode['ids'].append('recipe' + '-' + sig) signode['ids'].append('recipe' + '-' + sig)
if 'noindex' not in self.options: if 'contains' not in self.options:
ingredients = [ ingredients = [
x.strip() for x in self.options.get('contains').split(',')] x.strip() for x in self.options.get('contains').split(',')]