Merge pull request #2064 from pengjunjie1207/master

This commit is contained in:
Steven Zeck 2018-03-09 14:37:34 -06:00 committed by GitHub
commit 7e735ec70c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
# Next
- Update Prettier to 1.11.1. (#2060)
- Fix package.json repository field (#2062)
- Fix "Reindent" option for sqlformat. (#2064)
- ...
# v0.32.0 (2018-03-02)

View File

@ -17,7 +17,7 @@ module.exports = class Sqlformat extends Beautifier
beautify: (text, language, options) ->
@run("sqlformat", [
@tempFile("input", text)
"--reindent=#{options.reindent}" if options.reindent?
"--reindent" if options.reindent is true
"--indent_width=#{options.indent_size}" if options.indent_size?
"--keywords=#{options.keywords}" if (options.keywords? && options.keywords != 'unchanged')
"--identifiers=#{options.identifiers}" if (options.identifiers? && options.identifiers != 'unchanged')