Browse files

removed the ensure_newline_at_eof_on_save feature from jsformat. this…

… already exists in sublime code, no need to duplicate it
  • Loading branch information...
1 parent 7800dba commit 576e6450a6d1e11d855c86592b07ea47ac16fcb5 @jdc0589 committed Mar 13, 2013
Showing with 0 additions and 3 deletions.
  1. +0 −1 JsFormat.sublime-settings
  2. +0 −2 js_formatter.py
View
1 JsFormat.sublime-settings
@@ -12,6 +12,5 @@
"break_chained_methods": false,
// jsformat options
- "ensure_newline_at_eof_on_save": false,
"format_on_save": false
}
View
2 js_formatter.py
@@ -79,8 +79,6 @@ def run(self, edit):
orig = self.view.substr(replaceRegion)
res = jsbeautifier.beautify(orig, opts)
- if(not formatSelection and settings.get('ensure_newline_at_eof_on_save')):
- res = res + "\n"
_, err = merge_utils.merge_code(self.view, edit, orig, res)
if err:

0 comments on commit 576e645

Please sign in to comment.