From 923eb97048a382201237a0ee7c3c196a7a5900d7 Mon Sep 17 00:00:00 2001 From: yuin Date: Sun, 22 Dec 2019 23:31:22 +0900 Subject: [PATCH] Fixes #71 --- parser/parser.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parser/parser.go b/parser/parser.go index abe0887..d6cb066 100644 --- a/parser/parser.go +++ b/parser/parser.go @@ -999,8 +999,9 @@ type lineStat struct { } func isBlankLine(lineNum, level int, stats []lineStat) bool { - ret := false + ret := true for i := len(stats) - 1 - level; i >= 0; i-- { + ret = false s := stats[i] if s.lineNum == lineNum { if s.level < level && s.isBlank {