Skip to content

Commit 6c6c8d4

Browse files
committed
Ensure that all source files end with a single \n
This was done by first checking all files in the repository root by hand, and then by doing the following: $ npm i get-stdin@4 $ cat clean.coffee fs = require 'fs' stdin = require 'get-stdin' stdin (text) -> for file in text.trim().split('\n') contents = fs.readFileSync file .toString().replace /\s*$/, '\n' fs.writeFileSync file, contents return $ ls !(node_modules)/**/*.coffee | coffee clean.coffee
1 parent 98dd1bf commit 6c6c8d4

18 files changed

+17
-19
lines changed

CNAME

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
coffeescript.org
1+
coffeescript.org

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66

77
* Use the same coding style as the rest of the [codebase](https://github.com/jashkenas/coffeescript/tree/master/src). If you're just getting started with CoffeeScript, there's a nice [style guide](https://github.com/polarmobile/coffeescript-style-guide).
88

9-
* In your pull request, do not add documentation to `index.html` or re-build the minified `coffee-script.js` file. We'll do those things before cutting a new release.
9+
* In your pull request, do not add documentation to `index.html` or re-build the minified `coffee-script.js` file. We'll do those things before cutting a new release.

documentation/coffee/block_comment.coffee

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@
22
SkinnyMochaHalfCaffScript Compiler v1.0
33
Released under the MIT License
44
###
5-
6-

documentation/coffee/cake_tasks.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ task 'build:parser', 'rebuild the Jison parser', (options) ->
66
require 'jison'
77
code = require('./lib/grammar').parser.generate()
88
dir = options.output or 'lib'
9-
fs.writeFile "#{dir}/parser.js", code
9+
fs.writeFile "#{dir}/parser.js", code

documentation/coffee/do.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
for filename in list
22
do (filename) ->
33
fs.readFile filename, (err, contents) ->
4-
compile filename, contents.toString()
4+
compile filename, contents.toString()

documentation/coffee/expressions.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ grade = (student) ->
66
else
77
"C"
88

9-
eldest = if 24 > 21 then "Liz" else "Ike"
9+
eldest = if 24 > 21 then "Liz" else "Ike"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# The first ten global properties.
22

3-
globals = (name for name of window)[0...10]
3+
globals = (name for name of window)[0...10]

documentation/coffee/fat_arrow.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ Account = (customer, cart) ->
33
@cart = cart
44

55
$('.shopping_cart').on 'click', (event) =>
6-
@customer.purchase @cart
6+
@customer.purchase @cart

documentation/coffee/generators.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ perfectSquares = ->
55
yield num * num
66
return
77

8-
window.ps or= perfectSquares()
8+
window.ps or= perfectSquares()

documentation/coffee/scope.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ outer = 1
22
changeNumbers = ->
33
inner = -1
44
outer = 10
5-
inner = changeNumbers()
5+
inner = changeNumbers()

0 commit comments

Comments
 (0)