Fixes #301. Fix autopep8 beautifier's arguments
This commit is contained in:
parent
4eed4cfc21
commit
b5c3098778
|
@ -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?
|
||||||
])
|
])
|
Loading…
Reference in New Issue