PSWriteHTML icon indicating copy to clipboard operation
PSWriteHTML copied to clipboard

Out-HtmlView doesn't show line breaks

Open agrajaghh opened this issue 10 months ago • 1 comments

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: Image

Out-GridView Output: Image

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

agrajaghh avatar Feb 18 '25 19:02 agrajaghh