Skip to content

Schema forces script output to get syntax highlighting  #243

Closed
@zjalexander

Description

@zjalexander

The schema forces overaggressive codeblocks which include output. Our own help then gets formatted strangely, but we can't correct the issue without PlatyPS failing the schema check.

Can we alter the proposal so it doesn't look so counter-intuitively weird?

Steps to reproduce

See:
https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.utility/export-csv
MicrosoftDocs/PowerShell-Docs#808
MicrosoftDocs/PowerShell-Docs#895

Expected behavior

PS C:\>Get-Process | Export-Csv -Path "processes.csv"
  # In processes.csv
  #TYPE System.Diagnostics.Process
__NounName,Name,Handles,VM,WS,PM,NPM,Path,Company,CPU,FileVersion,... Process,powershell,626,201666560,76058624,61943808,11960,C:\WINDOWS... Process,powershell,257,151920640,38322176,37052416,7836,C:\WINDOWS\...

Actual behavior

 PS C:\>Get-Process | Export-Csv -Path "processes.csv"
  # In processes.csv
  #TYPE System.Diagnostics.Process
#__NounName,Name,Handles,VM,WS,PM,NPM,Path,Company,CPU,FileVersion,... #Process,powershell,626,201666560,76058624,61943808,11960,C:\WINDOWS... #Process,powershell,257,151920640,38322176,37052416,7836,C:\WINDOWS\...

Environment data

all versions of PowerShell, webhelp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions