mirror of
https://github.com/getgrav/grav.git
synced 2026-07-06 10:18:44 +02:00
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:
committed by
Andy Miller
parent
9129ce25d4
commit
98fb622bac
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user