Permalink
Browse files

written json files are newline-terminated (just to make them nicer fo…

…r humans)
  • Loading branch information...
1 parent 4f831b5 commit 2a8f461c7e6e7a4d9c22be9a8c4d9513443aee4a @drewfish committed May 8, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/crank.js
View
@@ -156,6 +156,7 @@ Base.prototype.fileWrite = function(path, content) {
Base.prototype.fileWriteJSON = function(path, content) {
content = JSON.stringify(content, null, 4);
+ content += '\n';
return libfs.writeFileSync(path, content, 'utf-8');
};

0 comments on commit 2a8f461

Please sign in to comment.