[PrettyDiff] Fixed Indent Tabs configuration ignored (issue: #910: https://github.com/Glavin001/atom-beautify/issues/910)

This commit is contained in:
ayoubdev 2016-04-23 18:49:20 +02:00
parent 09c3d6a539
commit 0152863484
1 changed files with 8 additions and 2 deletions

View File

@ -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) ->