diff --git a/lib/loadPartials.js b/lib/loadPartials.js index 8827cc2..280df6c 100644 --- a/lib/loadPartials.js +++ b/lib/loadPartials.js @@ -13,6 +13,6 @@ module.exports = function(dir) { var file = utils.readWithoutBOM(partials[i]); var name = path.basename(partials[i], ext); - this.Handlebars.registerPartial(name, file.toString() + '\n'); + this.Handlebars.registerPartial(name, file.toString()); } } diff --git a/test/fixtures/data-page/build/index.html b/test/fixtures/data-page/build/index.html index 291ee94..4dddfff 100644 --- a/test/fixtures/data-page/build/index.html +++ b/test/fixtures/data-page/build/index.html @@ -4,6 +4,5 @@ Page: Yes, kittens. Partial: Yes, kittens. - diff --git a/test/fixtures/data-page/expected/index.html b/test/fixtures/data-page/expected/index.html index 291ee94..4dddfff 100644 --- a/test/fixtures/data-page/expected/index.html +++ b/test/fixtures/data-page/expected/index.html @@ -4,6 +4,5 @@ Page: Yes, kittens. Partial: Yes, kittens. - diff --git a/test/fixtures/partials/build/index.html b/test/fixtures/partials/build/index.html index d06b7b5..8d0acb3 100644 --- a/test/fixtures/partials/build/index.html +++ b/test/fixtures/partials/build/index.html @@ -3,6 +3,5 @@

Body

Partial!

- diff --git a/test/fixtures/partials/expected/index.html b/test/fixtures/partials/expected/index.html index d06b7b5..8d0acb3 100644 --- a/test/fixtures/partials/expected/index.html +++ b/test/fixtures/partials/expected/index.html @@ -3,6 +3,5 @@

Body

Partial!

- diff --git a/test/fixtures/variable-root/build/index.html b/test/fixtures/variable-root/build/index.html index 38bf0b5..5498b14 100644 --- a/test/fixtures/variable-root/build/index.html +++ b/test/fixtures/variable-root/build/index.html @@ -3,6 +3,5 @@ - diff --git a/test/fixtures/variable-root/build/subfolder/index.html b/test/fixtures/variable-root/build/subfolder/index.html index e07fd33..34807f0 100644 --- a/test/fixtures/variable-root/build/subfolder/index.html +++ b/test/fixtures/variable-root/build/subfolder/index.html @@ -3,6 +3,5 @@ - diff --git a/test/fixtures/variable-root/expected/index.html b/test/fixtures/variable-root/expected/index.html index 38bf0b5..5498b14 100644 --- a/test/fixtures/variable-root/expected/index.html +++ b/test/fixtures/variable-root/expected/index.html @@ -3,6 +3,5 @@ - diff --git a/test/fixtures/variable-root/expected/subfolder/index.html b/test/fixtures/variable-root/expected/subfolder/index.html index e07fd33..34807f0 100644 --- a/test/fixtures/variable-root/expected/subfolder/index.html +++ b/test/fixtures/variable-root/expected/subfolder/index.html @@ -3,6 +3,5 @@ -