Skip to content

Commit

Permalink
[00000] Fixed a bug where a newline will apear at first line when usi…
Browse files Browse the repository at this point in the history
…ng pretty option
  • Loading branch information
Cagatay Ulubay committed Nov 20, 2015
1 parent f32a311 commit 49eda2d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Compiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -1696,7 +1696,11 @@ protected function compileChildren(array $nodes, $indent = true, $allowInline =
$phtml .= ' ';
}

$phtml .= $this->newLine().$this->indent().$this->compileNode($node);
if ($node->type != 'doctype') {
$phtml .= $this->newLine();
}

$phtml .= $this->indent().$this->compileNode($node);
}
$this->_level -= $indent ? 1 : 0;

Expand Down

0 comments on commit 49eda2d

Please sign in to comment.