diff --git a/PSFramework/PSFramework.psd1 b/PSFramework/PSFramework.psd1 index cf579ca..ca6f6de 100644 --- a/PSFramework/PSFramework.psd1 +++ b/PSFramework/PSFramework.psd1 @@ -4,7 +4,7 @@ RootModule = 'PSFramework.psm1' # Version number of this module. - ModuleVersion = '1.13.425' + ModuleVersion = '1.13.426' # ID used to uniquely identify this module GUID = '8028b914-132b-431f-baa9-94a6952f21ff' diff --git a/PSFramework/changelog.md b/PSFramework/changelog.md index e43a1a7..54ff771 100644 --- a/PSFramework/changelog.md +++ b/PSFramework/changelog.md @@ -1,5 +1,9 @@ # CHANGELOG +## 1.13.426 (2026-01-13) + +- Fix: Write-PSFHostColor - Ignores the `-NoNewLine` parameter + ## 1.13.425 (2026-01-07) - New: Configuration `PSFramework.Message.Style.OldColor` - reverts update to message printing, disabling use of ANSI codes for colors diff --git a/PSFramework/functions/message/Write-PSFHostColor.ps1 b/PSFramework/functions/message/Write-PSFHostColor.ps1 index 350d411..e4f2699 100644 --- a/PSFramework/functions/message/Write-PSFHostColor.ps1 +++ b/PSFramework/functions/message/Write-PSFHostColor.ps1 @@ -128,7 +128,7 @@ foreach ($entry in $match) { $row = $row -replace $entry.Groups[0].Value, "$($escape)$($colorMap[$entry.Groups[1].Value])m$($entry.Groups[2].Value)$($escape)$($defaultCode)m" } - Microsoft.PowerShell.Utility\Write-Host -Object $row -ForegroundColor $DefaultColor + Microsoft.PowerShell.Utility\Write-Host -Object $row -ForegroundColor $DefaultColor -NoNewline:$NoNewLine continue }