Fixed bug related to block sequence indentation

This commit is contained in:
Felix Krause 2016-03-09 20:26:16 +01:00
parent de7f821696
commit a6ce61d3c4
1 changed files with 2 additions and 1 deletions

View File

@ -152,7 +152,8 @@ template closeMoreIndentedLevels(atSequenceItem: bool = false) {.dirty.} =
if parent.indentation >= indentation: if parent.indentation >= indentation:
when atSequenceItem: when atSequenceItem:
if (indentation == level.indentation and level.kind == fplSequence) or if (indentation == level.indentation and level.kind == fplSequence) or
(indentation == parent.indentation and level.kind == fplUnknown): (indentation == parent.indentation and level.kind == fplUnknown and
parent.kind != fplSequence):
break break
debug("Closing because parent.indentation (" & $parent.indentation & debug("Closing because parent.indentation (" & $parent.indentation &
") >= indentation(" & $indentation & ")") ") >= indentation(" & $indentation & ")")