Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
Append a newline to text
Browse files Browse the repository at this point in the history
R readLines() complains if a file does not end in a newline
  • Loading branch information
jimhester committed Dec 3, 2015
1 parent 916e0ad commit 7ff6d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports =
lintOnFly: true
lint: (textEditor) ->
filePath = textEditor.getPath()
fileText = textEditor.getText()
fileText = textEditor.getText() + '\n'
return helpers.tempFile path.basename(filePath), fileText, (tmpFilename) ->
parameters = ['--slave', '--restore', '--no-save', '-e']

Expand Down

0 comments on commit 7ff6d0c

Please sign in to comment.