diff --git a/generate-readme.ps1 b/generate-readme.ps1 index e5225b4..7e7dc30 100644 --- a/generate-readme.ps1 +++ b/generate-readme.ps1 @@ -9,8 +9,8 @@ $regEx = [regex]'\/\/\s+@(\w+)\s+(.+)' # Initialize an array to hold the table rows $tableRows = @() -$tableRows = "| Filename | Name | Description |" -$tableRows += "|----------|------|-------------|" +$tableRows = "`n| Filename | Name | Description |`n" +$tableRows += "|----------|------|-------------|`n" # Loop through each file foreach ($file in $userJsFiles) { @@ -45,7 +45,7 @@ foreach ($file in $userJsFiles) { } while (($i -lt $content.Length) -and (-not $endOfCommentBlock)) # Add the row to the table - $tableRows += "| [$($file.Name)](https://git.ntnu.no/M365-Drift/MonkeyMagic/raw/main/$($file.Name)) | $name | $description |" + $tableRows += "| [$($file.Name)](https://git.ntnu.no/M365-Drift/MonkeyMagic/raw/main/$($file.Name)) | $name | $description |`n" } #$tableRows | ForEach-Object { Write-Output $_ }