File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Symfony/Component/Yaml Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -400,7 +400,7 @@ private function getNextEmbedBlock($indentation = null, $inSequence = false)
400
400
$ blockScalarIndentations = array ();
401
401
402
402
if ($ this ->isBlockScalarHeader ()) {
403
- $ blockScalarIndentations [] = $ this -> getCurrentLineIndentation () ;
403
+ $ blockScalarIndentations [] = $ oldLineIndentation ;
404
404
}
405
405
406
406
if (!$ this ->moveToNextLine ()) {
@@ -450,14 +450,14 @@ private function getNextEmbedBlock($indentation = null, $inSequence = false)
450
450
// terminate all block scalars that are more indented than the current line
451
451
if (!empty ($ blockScalarIndentations ) && $ indent < $ previousLineIndentation && trim ($ this ->currentLine ) !== '' ) {
452
452
foreach ($ blockScalarIndentations as $ key => $ blockScalarIndentation ) {
453
- if ($ blockScalarIndentation >= $ this -> getCurrentLineIndentation () ) {
453
+ if ($ blockScalarIndentation >= $ indent ) {
454
454
unset($ blockScalarIndentations [$ key ]);
455
455
}
456
456
}
457
457
}
458
458
459
459
if (empty ($ blockScalarIndentations ) && !$ this ->isCurrentLineComment () && $ this ->isBlockScalarHeader ()) {
460
- $ blockScalarIndentations [] = $ this -> getCurrentLineIndentation () ;
460
+ $ blockScalarIndentations [] = $ indent ;
461
461
}
462
462
463
463
$ previousLineIndentation = $ indent ;
You can’t perform that action at this time.
0 commit comments