Merge pull request #2064 from pengjunjie1207/master
This commit is contained in:
commit
7e735ec70c
|
@ -1,6 +1,7 @@
|
||||||
# Next
|
# Next
|
||||||
- Update Prettier to 1.11.1. (#2060)
|
- Update Prettier to 1.11.1. (#2060)
|
||||||
- Fix package.json repository field (#2062)
|
- Fix package.json repository field (#2062)
|
||||||
|
- Fix "Reindent" option for sqlformat. (#2064)
|
||||||
- ...
|
- ...
|
||||||
|
|
||||||
# v0.32.0 (2018-03-02)
|
# v0.32.0 (2018-03-02)
|
||||||
|
|
|
@ -17,7 +17,7 @@ module.exports = class Sqlformat extends Beautifier
|
||||||
beautify: (text, language, options) ->
|
beautify: (text, language, options) ->
|
||||||
@run("sqlformat", [
|
@run("sqlformat", [
|
||||||
@tempFile("input", text)
|
@tempFile("input", text)
|
||||||
"--reindent=#{options.reindent}" if options.reindent?
|
"--reindent" if options.reindent is true
|
||||||
"--indent_width=#{options.indent_size}" if options.indent_size?
|
"--indent_width=#{options.indent_size}" if options.indent_size?
|
||||||
"--keywords=#{options.keywords}" if (options.keywords? && options.keywords != 'unchanged')
|
"--keywords=#{options.keywords}" if (options.keywords? && options.keywords != 'unchanged')
|
||||||
"--identifiers=#{options.identifiers}" if (options.identifiers? && options.identifiers != 'unchanged')
|
"--identifiers=#{options.identifiers}" if (options.identifiers? && options.identifiers != 'unchanged')
|
||||||
|
|
Loading…
Reference in New Issue