mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #9527 from tk0miya/9525_tutorial
Fix #9525: tutorial: Wrong condition in recipe.py
This commit is contained in:
commit
8948f45226
@ -24,7 +24,7 @@ class RecipeDirective(ObjectDescription):
|
||||
|
||||
def add_target_and_index(self, name_cls, sig, signode):
|
||||
signode['ids'].append('recipe' + '-' + sig)
|
||||
if 'contains' not in self.options:
|
||||
if 'contains' in self.options:
|
||||
ingredients = [
|
||||
x.strip() for x in self.options.get('contains').split(',')]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user