Skip to content

Get-Help removing space on first code line in examples #14656

@wsmelton

Description

@wsmelton

Steps to reproduce

Have a function with example formatted as such:

    .EXAMPLE
    PS> $session = New-TssSession -SecretServer https://alpha -Credential $ssCred
    PS> Disable-TssSecret -TssSession $session -Id 93

    Disables secret 93

Import the module and running Get-Help Disable-TssSecret -Examples is removing the space on the first code line:

image

Expected behavior

The output of the example to match that coded in function.

Actual behavior

Space is removed on the first line of code, not matching the example as coded.

Environment data


Name                           Value
----                           -----
PSVersion                      7.1.1
PSEdition                      Core
GitCommitId                    7.1.1
OS                             Microsoft Windows 10.0.19041
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0


Note I did find it does this in Windows PowerShell as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-No ActivityIssue has had no activity for 6 months or moreWG-Interactive-HelpSystemhelp infrastructure and formatting of help

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions