From 8d37b966aeba46cda942a0e80ca28c45dfb35378 Mon Sep 17 00:00:00 2001 From: Kelly Thomas Reardon Date: Thu, 7 May 2026 21:37:09 -0500 Subject: [PATCH] changing escape to backtick for newlines --- Start-DoneTickNotifier.ps1 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Start-DoneTickNotifier.ps1 b/Start-DoneTickNotifier.ps1 index 2d2d8ac..4e8918e 100644 --- a/Start-DoneTickNotifier.ps1 +++ b/Start-DoneTickNotifier.ps1 @@ -26,7 +26,6 @@ function Send-Notification title=$title body=$content tags="$appriseWebhookTag" - "interpret-escapes"=yes } $json = $body | ConvertTo-Json try { @@ -84,10 +83,10 @@ foreach($chore in $chores) if ($overdueTasks.Count -ne 0) { Write-Host "Sending a notification for $($overdueTasks.Count) overdue tasks" - $content = "The following tasks are overdue!\\n" + $content = "The following tasks are overdue!`n" foreach($overdueTask in $overdueTasks) { - $content += "$($overdueTask.Name) was due $(Get-Date $overdueTask.nextDueDate -Format "MM/dd/yyyy HH:mm")\\n" + $content += "$($overdueTask.Name) was due $(Get-Date $overdueTask.nextDueDate -Format "MM/dd/yyyy HH:mm")`n" } Send-Notification -title "OVERDUE TASKS" -content $content } @@ -95,10 +94,10 @@ if ($overdueTasks.Count -ne 0) if ($todaysTasks.Count -ne 0) { Write-Host "Sending a notification for $($todaysTasks.Count) tasks due today" - $content = "The following tasks are due today!\\n" + $content = "The following tasks are due today!`n" foreach($task in $todaysTasks) { - $content += "$($task.Name) is due $(Get-Date $task.nextDueDate -Format "MM/dd/yyyy HH:mm")\\n" + $content += "$($task.Name) is due $(Get-Date $task.nextDueDate -Format "MM/dd/yyyy HH:mm")`n" } Send-Notification -title "TODAY'S TASKS" -content $content } \ No newline at end of file