diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Utils/Formatter.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Utils/Formatter.php b/src/Utils/Formatter.php index 56691eb..f82ef13 100644 --- a/src/Utils/Formatter.php +++ b/src/Utils/Formatter.php @@ -73,7 +73,7 @@ class Formatter * * @var string */ - 'line_ending' => $this->options['type'] == 'html' ? '<br/>' : "\n", + 'line_ending' => NULL, /** * The string used for indentation. @@ -172,6 +172,10 @@ class Formatter $options ); + if (is_null($this->options['line_ending'])) { + $this->options['line_ending'] = $this->options['type'] == 'html' ? '<br/>' : "\n"; + } + // `parts_newline` requires `clause_newline` $this->options['parts_newline'] &= $this->options['clause_newline']; } |