diff --git a/examples/simple-jsbeautifyrc/.jsbeautifyrc b/examples/simple-jsbeautifyrc/.jsbeautifyrc index bd461289b..650b9c1bd 100644 --- a/examples/simple-jsbeautifyrc/.jsbeautifyrc +++ b/examples/simple-jsbeautifyrc/.jsbeautifyrc @@ -8,5 +8,5 @@ "max_preserve_newlines": 2, "jslint_happy": true, "indent_handlebars": true, - "object": {} + "object": {} } diff --git a/examples/simple-jsbeautifyrc/alphasort1.scss b/examples/simple-jsbeautifyrc/alphasort1.scss new file mode 100644 index 000000000..9b5e86b2b --- /dev/null +++ b/examples/simple-jsbeautifyrc/alphasort1.scss @@ -0,0 +1,4 @@ +.example(){ + .base-apple(); // Sets base apple color to red + .apple-color(@color-green); // Sets apple color to green +} diff --git a/lib/langs/less-beautify.coffee b/lib/langs/less-beautify.coffee index 2edb1dce6..b1ff4927d 100644 --- a/lib/langs/less-beautify.coffee +++ b/lib/langs/less-beautify.coffee @@ -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]