Skip to content

Commit

Permalink
Fix an encoding bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
mblayman committed Dec 26, 2016
1 parent fc817b5 commit 025185a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handroll/composers/j2.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def compose(self, catalog, source_file, out_dir):
with open(output_file, 'wb') as out:
out.write(template.render(data).encode('utf-8'))
# Frontmatter loading seems to munch the final line separator.
out.write(os.linesep)
out.write(os.linesep.encode('utf-8'))
else:
logger.debug(_('Skipping {filename} ... It is up to date.').format(
filename=filename))
Expand Down

0 comments on commit 025185a

Please sign in to comment.