Permalink
Browse files

stop adding extra line break when building locales.js

fixes #1090
  • Loading branch information...
1 parent 7e4d005 commit aa4d54c3295826c90525cb63447b044293cf04a6 @ansis ansis committed Mar 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 build.js
View
@@ -92,5 +92,5 @@ fs.writeFileSync('data/data.js', 'iD.data = ' + JSON.stringify({
var core = YAML.load(fs.readFileSync('data/core.yaml', 'utf8'));
var presets = YAML.load(fs.readFileSync('data/presets.yaml', 'utf8'));
var en = _.merge(core, presets);
-var out = 'locale.en = ' + JSON.stringify(en.en, null, 4) + ';\n';
+var out = 'locale.en = ' + JSON.stringify(en.en, null, 4) + ';';
fs.writeFileSync('data/locales.js', fs.readFileSync('data/locales.js', 'utf8').replace(/locale.en =[^;]*;/, out));

0 comments on commit aa4d54c

Please sign in to comment.