Skip to content

Commit

Permalink
Backport fix from 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
daftspunk committed Jan 20, 2022
1 parent 8f06437 commit c393c5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Halcyon/Processors/SectionParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ public static function render($data, $options = [])
}
}

$content[] = $markup;
$sections = preg_split('/^'.preg_quote(self::SECTION_SEPARATOR).'\s*$/m', $markup, -1);
$content[] = end($sections);

$content = trim(implode(PHP_EOL.self::SECTION_SEPARATOR.PHP_EOL, $content));

Expand Down

0 comments on commit c393c5c

Please sign in to comment.