mirror of https://github.com/status-im/NimYAML.git
Fixed bug related to block sequence indentation
This commit is contained in:
parent
de7f821696
commit
a6ce61d3c4
|
@ -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 & ")")
|
||||||
|
|
Loading…
Reference in New Issue