You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Ye I guess one would have to fix this to be consistent.
$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-FilePath $PSScriptRoot\test.html -Online -DataStore JavaScript
$test|Out-GridView#$test | Write-Host$test1=@("1. new line$([System.Environment]::NewLine)inline","2. new line$([System.Environment]::NewLine)inline with carriage return","3. new line$([System.Environment]::NewLine)","4. two new lines$([System.Environment]::NewLine)")
New-HTML {
New-HTMLTable-DataTable $test-DataStore JavaScript
New-HTMLTable-DataTable $test1-DataStore JavaScript
New-HTMLTable-DataTable $test-DataStore HTML
New-HTMLTable-DataTable $test1-DataStore HTML
} -ShowHTML
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:
Out-HtmlView Output in Firefox:

Out-GridView Output:

Write-Host Output:
System Info:
Windows 11
Powershell 7.4.6
PSWriteHTML 1.28.0
The text was updated successfully, but these errors were encountered: