fix indentation detection
This commit is contained in:
parent
416c4cbb84
commit
3ff544bbab
@ -42,8 +42,8 @@ each(Buffer.prototype, function (fn, key) {
|
|||||||
CodeGenerator.normaliseOptions = function (code, opts) {
|
CodeGenerator.normaliseOptions = function (code, opts) {
|
||||||
var style = " ";
|
var style = " ";
|
||||||
if (code) {
|
if (code) {
|
||||||
style = detectIndent(code).indent;
|
var indent = detectIndent(code).indent;
|
||||||
if (style && style !== " ") style = " ";
|
if (indent && indent !== " ") style = indent;
|
||||||
}
|
}
|
||||||
|
|
||||||
return merge({
|
return merge({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user