Do not add trailing whitespace to blank lines
This commit is contained in:
parent
98c5b34f2b
commit
0f92944edd
@ -1207,7 +1207,9 @@ public function __construct()
|
||||
$lines = explode("\n", $code);
|
||||
|
||||
foreach ($lines as $key => $value) {
|
||||
$lines[$key] = str_repeat($this->spaces, $num) . $lines[$key];
|
||||
if (!empty($value)) {
|
||||
$lines[$key] = str_repeat($this->spaces, $num) . $lines[$key];
|
||||
}
|
||||
}
|
||||
|
||||
return implode("\n", $lines);
|
||||
|
Loading…
Reference in New Issue
Block a user