cookbook dedent

master
km0 3 years ago
parent afc1c3a16f
commit cb5b32166f

@ -93,19 +93,19 @@ def update_wiki(recipe):
# PROV TEMPLATE
content = f"""\
=== {recipe['title']} ===
''{recipe['description']}''
<br>
'''Nature of the input'''
<br>
{recipe['nature']}
<br>
''' Process Log'''
<br>
{steps}
'''Who'''
<br>
{recipe['who']}
=== {recipe['title']} ===
''{recipe['description']}''
<br>
'''Nature of the input'''
<br>
{recipe['nature']}
<br>
''' Process Log'''
<br>
{steps}
'''Who'''
<br>
{recipe['who']}
"""
text += textwrap.dedent(content)
page.edit(text, f'Added a new recipe! {recipe["title"]}')

Loading…
Cancel
Save