Skip to content
This repository has been archived by the owner on Aug 16, 2019. It is now read-only.

Commit

Permalink
fix bug in __init__.py generation that added trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
rage2000 committed Jan 12, 2017
1 parent 425182c commit 3779b89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Version 1.7.0 - Unreleased
* add fabric script for install/deploy production version
* add CHANGELOG file and build first release number with jinja2-time
* use a .flake8 file for flake8 settings
* fix bug in __init__.py generation that added trailing whitespace

Version 1.6.0 - 2016/12/17
--------------------------
Expand Down
3 changes: 2 additions & 1 deletion hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ def store_project_context(context, project_dir, test_mode=False):

with open(destination, 'r') as infile:
content = infile.read().format(
cookiecutter_context=json.dumps(c, indent=4))
cookiecutter_context=json.dumps(c, indent=4,
separators=(',', ': ')))

if not test_mode:
print "* Writing context into {}".format(project_dir)
Expand Down

0 comments on commit 3779b89

Please sign in to comment.