[PrettyDiff] Fixed Indent Tabs configuration ignored (issue: #910: https://github.com/Glavin001/atom-beautify/issues/910)
This commit is contained in:
parent
09c3d6a539
commit
0152863484
|
@ -6,8 +6,14 @@ module.exports = class PrettyDiff extends Beautifier
|
||||||
options: {
|
options: {
|
||||||
# Apply these options first / globally, for all languages
|
# Apply these options first / globally, for all languages
|
||||||
_:
|
_:
|
||||||
inchar: "indent_char"
|
inchar: ["indent_with_tabs", "indent_char", (indent_with_tabs, indent_char) ->
|
||||||
insize: "indent_size"
|
if (indent_with_tabs is true) then \
|
||||||
|
"\t" else indent_char
|
||||||
|
]
|
||||||
|
insize: ["indent_with_tabs", "indent_size", (indent_with_tabs, indent_size) ->
|
||||||
|
if (indent_with_tabs is true) then \
|
||||||
|
1 else indent_size
|
||||||
|
]
|
||||||
objsort: (objsort) ->
|
objsort: (objsort) ->
|
||||||
objsort or false
|
objsort or false
|
||||||
preserve: ['preserve_newlines', (preserve_newlines) ->
|
preserve: ['preserve_newlines', (preserve_newlines) ->
|
||||||
|
|
Loading…
Reference in New Issue