Browse Source

GMI style changes

master
sloum 11 months ago
parent
commit
29f583a276
  1. 6
      recipe

6
recipe

@ -190,8 +190,8 @@ def output_plaintext(path):
if 'title' in recipe['meta']:
out.append(recipe['meta']['title'].upper())
meta_count_needed = 1
if len(recipe['meta']) > meta_count_needed:
out.append('')
if len(recipe['meta']) > meta_count_needed:
for key in recipe['meta']:
if key == 'title':
continue
@ -235,8 +235,8 @@ def output_gemini(path):
if 'title' in recipe['meta']:
out.append('# {}'.format(recipe['meta']['title']))
meta_count_needed = 1
if len(recipe['meta']) > meta_count_needed:
out.append('')
if len(recipe['meta']) > meta_count_needed:
for key in recipe['meta']:
if key == 'title':
continue
@ -256,11 +256,13 @@ def output_gemini(path):
out.append('## Instructions\n')
for ind, ins in enumerate(recipe['instructions']):
out.append('{:>2}. {}'.format(ind+1, ins))
out.append('')
out.append('')
if len(recipe['notes']):
out.append('## Notes\n')
for note in recipe['notes']:
out.append('* {}'.format(note))
out.append('')
out.append('')
if print_to_stdout:
print_recipe(out)

Loading…
Cancel
Save