fix indentation detection

This commit is contained in:
Sebastian McKenzie 2015-02-01 16:47:28 +11:00
parent 416c4cbb84
commit 3ff544bbab

View File

@ -42,8 +42,8 @@ each(Buffer.prototype, function (fn, key) {
CodeGenerator.normaliseOptions = function (code, opts) {
var style = " ";
if (code) {
style = detectIndent(code).indent;
if (style && style !== " ") style = " ";
var indent = detectIndent(code).indent;
if (indent && indent !== " ") style = indent;
}
return merge({