Skip to content

Commit

Permalink
Dont normalize separator. Closes GH-20.
Browse files Browse the repository at this point in the history
To allow a  user to set LF even on a Windows environment.
  • Loading branch information
shama committed Apr 8, 2013
1 parent 3b03fbf commit 2da5f3d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v0.2.0:
date: 2013-04-08
changes:
- Dont normalize separator to allow user to set LF even on a Windows environment.
v0.1.3:
date: 2013-02-22
changes:
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Task targets, files and options may be specified according to the grunt [Configu

#### separator
Type: `String`
Default: linefeed
Default: `grunt.util.linefeed`

Concatenated files will be joined on this string. If you're post-processing concatenated JavaScript files with a minifier, you may need to use a semicolon `';'` as the separator.

Expand Down Expand Up @@ -218,6 +218,7 @@ grunt.initConfig({

## Release History

* 2013-04-07   v0.2.0   Dont normalize separator to allow user to set LF even on a Windows environment.
* 2013-02-21   v0.1.3   Support footer option.
* 2013-02-14   v0.1.2   First official release for Grunt 0.4.0.
* 2013-01-17   v0.1.2rc6   Updating grunt/gruntplugin dependencies to rc6. Changing in-development grunt/gruntplugin dependency versions from tilde version ranges to specific versions.
Expand All @@ -229,4 +230,4 @@ grunt.initConfig({

Task submitted by ["Cowboy" Ben Alman](http://benalman.com/)

*This file was generated on Fri Feb 22 2013 09:34:22.*
*This file was generated on Mon Apr 08 2013 09:20:19.*
2 changes: 1 addition & 1 deletion docs/concat-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## separator
Type: `String`
Default: linefeed
Default: `grunt.util.linefeed`

Concatenated files will be joined on this string. If you're post-processing concatenated JavaScript files with a minifier, you may need to use a semicolon `';'` as the separator.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "grunt-contrib-concat",
"description": "Concatenate files.",
"version": "0.1.3",
"version": "0.2.0",
"homepage": "https://github.com/gruntjs/grunt-contrib-concat",
"author": {
"name": "Grunt Team",
Expand Down
2 changes: 1 addition & 1 deletion tasks/concat.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = function(grunt) {
src = comment.stripBanner(src, options.stripBanners);
}
return src;
}).join(grunt.util.normalizelf(options.separator)) + footer;
}).join(options.separator) + footer;

// Write the destination file.
grunt.file.write(f.dest, src);
Expand Down

0 comments on commit 2da5f3d

Please sign in to comment.