[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: {
|
||||
# Apply these options first / globally, for all languages
|
||||
_:
|
||||
inchar: "indent_char"
|
||||
insize: "indent_size"
|
||||
inchar: ["indent_with_tabs", "indent_char", (indent_with_tabs, indent_char) ->
|
||||
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 or false
|
||||
preserve: ['preserve_newlines', (preserve_newlines) ->
|
||||
|
|
Loading…
Reference in New Issue