Skip to content

Commit

Permalink
reassignment of indent from function to value fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
brainysmurf authored and joshbtn committed Mar 17, 2021
1 parent 2ea2585 commit 6b9f778
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ExcelFormulaUtilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@

var indentCount = 0;

var indent = function () {
var indent_f = function () {
var s = "",
i = 0;

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6b9f778

Please sign in to comment.