Skip to content

Out-HtmlView doesn't show line breaks #473

@agrajaghh

Description

@agrajaghh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions