Skip to content

Commit

Permalink
Fixes #96. Fix support for Alphasort option for LESS/SCSS properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavin001 committed Sep 28, 2014
1 parent 403143e commit ccc8802
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/simple-jsbeautifyrc/.jsbeautifyrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"max_preserve_newlines": 2,
"jslint_happy": true,
"indent_handlebars": true,
"object": {}
"object": {}
}
4 changes: 4 additions & 0 deletions examples/simple-jsbeautifyrc/alphasort1.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.example(){
.base-apple(); // Sets base apple color to red
.apple-color(@color-green); // Sets apple color to green
}
1 change: 1 addition & 0 deletions lib/langs/less-beautify.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = (text, options, callback) ->
mode: "beautify"
inchar: options.indent_character
insize: options.indent_size
alphasort: options.alphasort || false

output = prettydiff.api(args)
result = output[0]
Expand Down

0 comments on commit ccc8802

Please sign in to comment.