diff --git a/Parser.php b/Parser.php index 1fade4ac..f82f2b57 100644 --- a/Parser.php +++ b/Parser.php @@ -874,7 +874,7 @@ private function parseBlockScalar(string $style, string $chomping = '', int $ind if ($notEOF) { $blockLines[] = ''; $this->moveToPreviousLine(); - } elseif (!$notEOF && !$this->isCurrentLineLastLineInDocument()) { + } elseif (!$this->isCurrentLineLastLineInDocument()) { $blockLines[] = ''; }