Make sure there's an end of line after each file added to the pipeline (#806)

Fixes an issue with files ending with a line comment, but no new line.

Also fixes (in a case I found) the already-seen JSMin fatal issue with
"Regex not terminated" error.
This commit is contained in:
Flavio Copes
2016-04-27 16:17:34 +02:00
committed by Andy Miller
parent 9129ce25d4
commit 98fb622bac

View File

@@ -1114,7 +1114,8 @@ class Assets
$file = $this->cssRewrite($file, $relative_dir);
}
$buffer .= $file;
$file = rtrim($file) . PHP_EOL;
$buffer .= $file;
}
// Pull out @imports and move to top