Skip to content

Commit

Permalink
Merge pull request #168 from colorgreen/master
Browse files Browse the repository at this point in the history
Fix line splitting when reading story code
  • Loading branch information
taylorotwell authored Oct 25, 2019
2 parents 7582ba3 + 85b835b commit eb4b243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TaskContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ public function startMacro($macro, array $options = [])
*/
public function endMacro()
{
$macro = explode(PHP_EOL, $this->trimSpaces(trim(ob_get_clean())));
$macro = preg_split('/\n|\r\n?/', $this->trimSpaces(trim(ob_get_clean())));

$this->macros[array_pop($this->macroStack)] = $macro;
}
Expand Down

0 comments on commit eb4b243

Please sign in to comment.