Change logic to prevent early doc end state (#115)

fixes #114

Co-authored-by: quantimnot <quantimnot@users.noreply.github.com>
This commit is contained in:
quantimnot 2022-07-10 12:14:07 -04:00 committed by GitHub
parent 741fd18047
commit 5a3aab9389
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -551,7 +551,7 @@ proc readBlockScalar(lex: var Lexer) =
break body
else:
if lex.currentIndentation() < indent or
(indent == 0 and lex.dirEndFollows() or lex.docEndFollows()):
(indent == 0 and (lex.dirEndFollows() or lex.docEndFollows())):
break content
if lex.cur == Token.Folded and lex.c in space:
moreIndented = true