summaryrefslogtreecommitdiff
path: root/lib/Parser.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Parser.js')
-rw-r--r--lib/Parser.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Parser.js b/lib/Parser.js
index 1ab65ec..a1df07c 100644
--- a/lib/Parser.js
+++ b/lib/Parser.js
@@ -550,6 +550,9 @@ Parser = (function() {
smallestIndent = -1;
for (j = 0, len = lines.length; j < len; j++) {
line = lines[j];
+ if (Utils.trim(line, ' ').length === 0) {
+ continue;
+ }
indent = line.length - Utils.ltrim(line).length;
if (smallestIndent === -1 || indent < smallestIndent) {
smallestIndent = indent;