Skip to content

Commit

Permalink
Fix line splitting when reading story code
Browse files Browse the repository at this point in the history
  • Loading branch information
colorgreen committed Oct 25, 2019
1 parent 69db0aa commit 85b835b
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 85b835b

Please sign in to comment.