Skip to content
Permalink
Browse files

better blank lines

  • Loading branch information
ralsina committed Jun 5, 2017
1 parent 3bd9cb5 commit cf5dcc9e95efc90c561f8b2bf27ed4f97d969846
Showing with 2 additions and 2 deletions.
  1. +2 −2 nikola/utils.py
@@ -1467,12 +1467,12 @@ def write_metadata(data, _format='nikola'):
if _format == 'yaml':
if yaml is None:
req_missing('pyyaml', 'use YAML metadata', optional=False)
return '\n'.join(('---', yaml.safe_dump(data, default_flow_style=False), '---', ''))
return '\n'.join(('---', yaml.safe_dump(data, default_flow_style=False).strip(), '---', '', ''))

elif _format == 'toml':
if toml is None:
req_missing('toml', 'use TOML metadata', optional=False)
return '\n'.join(('+++', toml.dumps(data), '+++', ''))
return '\n'.join(('+++', toml.dumps(data).strip(), '+++', '', ''))

elif _format == 'pelican_rest':
title = data.pop('title')

0 comments on commit cf5dcc9

Please sign in to comment.