Fixes #301. Fix autopep8 beautifier's arguments

This commit is contained in:
Glavin Wiechert 2015-05-03 12:00:33 -03:00
parent 4eed4cfc21
commit b5c3098778
2 changed files with 5 additions and 4 deletions

View File

@ -14,9 +14,10 @@ module.exports = class autopep8 extends Beautifier
} }
beautify: (text, language, options) -> beautify: (text, language, options) ->
# console.log('autopep8', options, text, language)
@run("autopep8", [ @run("autopep8", [
@tempFile("input", text) @tempFile("input", text)
"--max-line-length #{options.max_line_length}" if options.max_line_length? ["--max-line-length", "#{options.max_line_length}"] if options.max_line_length?
"--indent-size #{options.indent_size}" if options.indent_size? ["--indent-size","#{options.indent_size}"] if options.indent_size?
"--ignore #{options.ignore.join(',')}" if options.ignore? ["--ignore","#{options.ignore.join(',')}"] if options.ignore?
]) ])