PSWriteHTML
PSWriteHTML copied to clipboard
Out-HtmlView doesn't show line breaks
Unfortunately Out-HtmlView doesn't show line breaks (`n) without carriage return (`r) for me. Powershell and Out-GridView are showing the normal line breaks:
Example Code:
$test = @("1. new line`ninline",
"2. new line`r`ninline with carriage return",
"3. new line`n",
"4. two new lines`n`n")
$test | Out-HtmlView
$test | Out-GridView
$test | Write-Host
Out-HtmlView Output in Firefox:
Out-GridView Output:
Write-Host Output:
1. new line
inline
2. new line
inline with carriage return
3. new line
4. two new lines
System Info: Windows 11 Powershell 7.4.6 PSWriteHTML 1.28.0