1
0
mirror of synced 2025-03-04 20:03:21 +03:00

Do not add trailing whitespace to blank lines

This commit is contained in:
Nick Masters 2012-10-30 22:22:04 +00:00
parent 98c5b34f2b
commit 0f92944edd

View File

@ -1207,8 +1207,10 @@ public function __construct()
$lines = explode("\n", $code);
foreach ($lines as $key => $value) {
if (!empty($value)) {
$lines[$key] = str_repeat($this->spaces, $num) . $lines[$key];
}
}
return implode("\n", $lines);
}