diff options
author | kpdecker <kpdecker@gmail.com> | 2014-08-23 17:44:45 -0500 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2014-08-23 17:44:45 -0500 |
commit | cde008b49f3cc64711a23c107fa53ad612954aef (patch) | |
tree | 0980f61500f3a54a0a27cde09cd092a09e936788 /lib/handlebars/compiler/helpers.js | |
parent | 84d646bb5d5a8bb01bfb9465ee1078161f069742 (diff) | |
download | handlebars.js-cde008b49f3cc64711a23c107fa53ad612954aef.zip handlebars.js-cde008b49f3cc64711a23c107fa53ad612954aef.tar.gz handlebars.js-cde008b49f3cc64711a23c107fa53ad612954aef.tar.bz2 |
Cleanup from code coverage report
Diffstat (limited to 'lib/handlebars/compiler/helpers.js')
-rw-r--r-- | lib/handlebars/compiler/helpers.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/handlebars/compiler/helpers.js b/lib/handlebars/compiler/helpers.js index c93b811..dd32299 100644 --- a/lib/handlebars/compiler/helpers.js +++ b/lib/handlebars/compiler/helpers.js @@ -135,12 +135,12 @@ function isNextWhitespace(statements, i, isRoot) { return checkWhitespace(isRoot, statements[i+1], statements[i+2]); } -function checkWhitespace(isRoot, next1, next2, disallowIndent) { +function checkWhitespace(isRoot, next1, next2) { if (!next1) { return isRoot; } else if (next1.type === 'content') { // Check if the previous node is empty or whitespace only - if (disallowIndent ? !next1.string : /^[\s]*$/.test(next1.string)) { + if (/^[\s]*$/.test(next1.string)) { if (next2) { return next2.type === 'content' || /\n$/.test(next1.string); } else { |