From 261283eeb328acf19e39c2182026845aa98c4756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Andreas=20Nilsen?= Date: Thu, 15 Aug 2024 13:04:05 +0200 Subject: [PATCH] gen --- generate-readme.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 $_ }