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 {