From 1d945e98d9c59bdb1b46166fcf0486ca01585c5c Mon Sep 17 00:00:00 2001 From: mourner Date: Mon, 12 Dec 2011 22:15:06 +0200 Subject: [PATCH] fix line endings and update build --- Jakefile.js | 4 ++-- build/build.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Jakefile.js b/Jakefile.js index 7350f1a6..7e46a301 100644 --- a/Jakefile.js +++ b/Jakefile.js @@ -1,9 +1,9 @@ var build = require('./build/build.js'), lint = require('./build/hint.js'); -var COPYRIGHT = "/*\n Copyright (c) 2010-2011, CloudMade, Vladimir Agafonkin\n" + +var COPYRIGHT = "/*\r\n Copyright (c) 2010-2011, CloudMade, Vladimir Agafonkin\n" + " Leaflet is a modern open-source JavaScript library for interactive maps.\n" + - " http://leaflet.cloudmade.com\n*/\n"; + " http://leaflet.cloudmade.com\r\n*/\r\n"; desc('Check Leaflet source for errors with JSHint'); task('lint', function () { diff --git a/build/build.js b/build/build.js index 1d4b4a91..dff8ab2d 100644 --- a/build/build.js +++ b/build/build.js @@ -53,7 +53,7 @@ exports.uglify = function (code) { exports.combineFiles = function (files) { var content = ''; for (var i = 0, len = files.length; i < len; i++) { - content += fs.readFileSync(files[i], 'utf8') + '\n\n'; + content += fs.readFileSync(files[i], 'utf8') + '\r\n\r\n'; } return content; }