diff --git a/WebLoader/Compiler.php b/WebLoader/Compiler.php index 370995e..77065c8 100644 --- a/WebLoader/Compiler.php +++ b/WebLoader/Compiler.php @@ -157,10 +157,14 @@ public function getContent(array $files = null) $files = $this->collection->getFiles(); } + // load content $content = ''; foreach ($files as $file) { - $content .= PHP_EOL . $this->loadFile($file); + if ($content !== '') { + $content .= PHP_EOL; + } + $content .= $this->loadFile($file); } // apply filters