Skip to content

Commit

Permalink
remove trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
FH-Inway committed May 1, 2024
1 parent eb40ae3 commit de5b13e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build/format-commentbasedhelp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ $files.AddRange($filesInternal)

foreach ($file in $files) {
$text = ($file | Get-Content -Raw).Trim()
$lines = $text -split "`n"
$lines = $lines | ForEach-Object { $PSItem.TrimEnd() }
$text = $lines -join "`n"
Set-Content -Path $file.FullName -Encoding UTF8 -Value (Get-Header $text).TrimEnd()
Add-Content -Path $file.FullName -Encoding UTF8 -Value "<#".Trim()
Add-Content -Path $file.FullName -Encoding UTF8 -Value (Format-Help $text)
Expand Down

0 comments on commit de5b13e

Please sign in to comment.