Skip to content

Line wrapping in PS Core in-the-box help does not indent appropriately  #7175

Closed

Description

Issue Details

Long spans of help text that wrap lines do not honor indentation on subsequent lines. This results in a less than pleasant reading experience. Here is what I'm seeing in 6.1 preview 3 on Windows:

image

Compare this to the nicer formatted 5.1 help:

image

There is also a typo in the 6.1 Get-ChildItem Description - it says all child continers and it should be all child containers. Apparently that has been introduced by the rendered as the typo isn't in the source doc.

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      6.1.0-preview.3
PSEdition                      Core
GitCommitId                    v6.1.0-preview.3
OS                             Microsoft Windows 10.0.17134
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Moved from MicrosoftDocs/PowerShell-Docs#2606 per request of Sean Wheeler (@sdwheeler).

Activity

  1. added
    WG-Interactive-HelpSystem
    on Jun 25, 2018
  2. powercode commented on Jun 26, 2018

    @powercode
    Collaborator

    Steve Lee (@SteveL-MSFT) I don't think this is help system or Future. I think it is a regression in the formatting system.
    Probably got broken with the format trimming work.

  3. powercode commented on Jun 26, 2018

    @powercode
    Collaborator
  4. SteveL-MSFT commented on Jun 26, 2018

    @SteveL-MSFT
    Member

    Staffan Gustafsson (@powercode) the help formatting doesn't go through the tablewriter so not related to #7179. I checked with 6.0.2 and it's the same issue when you pipe help to a pager, so it's not a regression from the formatting changes, but I think it's something in the HelpSystem. It's in future since it's not blocking 6.1 release. future is the new backlog.

  5. changed the title [-]Line wrapping in PS Core in-the-box does not indent appropriately [/-] [+]Line wrapping in PS Core in-the-box help does not indent appropriately [/+] on Jun 27, 2018
  6. rkeithhill commented on Feb 25, 2019

    @rkeithhill
    CollaboratorAuthor

    This issue gives PoweShell Core a bit of a black eye when it comes to help topic readibility. I have found that I can correct this like so:

    Get-Help <cmd-name> -Full | Out-String -Width ($host.UI.RawUI.WindowSize.Width - 1) | less
    
  7. added 2 commits that reference this issue on Mar 3, 2019
    f26054f
    1f06d43
  8. added a commit that references this issue on Apr 10, 2019
    d05737a
  9. added a commit that references this issue on Aug 6, 2026
    77dd4a3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution-FixedWG-Interactive-HelpSystem

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions