IviFoundation / ivifoundation.github.io

The future website of the IVI Foundation
https://ivifoundation.github.io
5 stars 4 forks source link

Whitespace optimizations #44

Closed alejandro5042 closed 1 year ago

alejandro5042 commented 1 year ago

Many editors will do this by default, and so let's get it all done at once so we don't see those diffs in future PRs.

Also removed multiple blank lines, and ensured there was a blank line after the YAML block.


How this was made:

# Trim lines:
Get-ChildItem -Recurse -Filter *.md | ForEach-Object {(Get-Content $_.FullName) | ForEach-Object {$_.TrimEnd()} | Set-Content $_.FullName}

# Merge multiple blank lines:
Get-ChildItem -Recurse -Filter *.md | ForEach-Object {(Get-Content $_.FullName) | Out-String | % {$_ -replace "\r\n(\r\n)+", "`r`n`r`n"} | Set-Content $_.FullName}
joseph-mueller commented 1 year ago

Looks good