From 6b9f778cf6cb7c4375c7eae64938a3542cf8a115 Mon Sep 17 00:00:00 2001 From: Adam Morris Date: Sat, 16 Jan 2021 18:22:57 +0800 Subject: [PATCH] reassignment of indent from function to value fixed --- src/ExcelFormulaUtilities.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ExcelFormulaUtilities.js b/src/ExcelFormulaUtilities.js index ec45dd3..0e0cf2b 100644 --- a/src/ExcelFormulaUtilities.js +++ b/src/ExcelFormulaUtilities.js @@ -930,7 +930,7 @@ var indentCount = 0; - var indent = function () { + var indent_f = function () { var s = "", i = 0; @@ -974,7 +974,7 @@ matchEndNewLine = new RegExp(options.newLine + '$', ''), autoBreak = testAutoBreak(nextToken), autoIndent = isNewLine, - indent = autoIndent ? indent() : options.tmplIndentSpace, + indent = autoIndent ? indent_f() : options.tmplIndentSpace, lineBreak = autoBreak ? options.newLine : ""; // TODO this strips out spaces which breaks part of issue 28. 'Data Sheet' gets changed to DataSheet