Skip to content

Commit

Permalink
Merge pull request #2 from kor2win/pint-pleasure
Browse files Browse the repository at this point in the history
fix: removed indentation spaces for blank lines.
  • Loading branch information
Pavel Babushkin authored Sep 11, 2024
2 parents 1cb15bd + 1263403 commit 45012e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helpers/IndentsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ public static function preLine(string $content, string $fill): string
{
$lines = explode(PHP_EOL, $content);

return implode(PHP_EOL, array_map(fn(string $line) => $fill . $line, $lines));
return implode(PHP_EOL, array_map(fn(string $line) => empty(trim($line)) ? '' : $fill . $line, $lines));
}
}

0 comments on commit 45012e5

Please sign in to comment.