-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Resolution-FixedThe issue is fixed.The issue is fixed.
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
The -RepeatHeader switch parameter for Format-Table works as expected (header lines are repeated after a number of table rows are output based on the size of the console window) when rendering a data type using custom formatting. For example, these commands will render with repeated headers:
Get-Process | Format-Table -RepeatHeaderGet-ChildItem C:\Windows\ | Format-Table -RepeatHeader
However, these commands do not render with repeated headers:Get-Verb | Format-Table -RepeatHeaderGet-Process | Format-Table -Property Name, ID -RepeatHeaderGet-ChildItem C:\Windows\ | Format-Table -Property Name, Length -RepeatHeader
Expected behavior
Output of Format-Table contains multiple header rowsActual behavior
Header row is only rendered at the beginning of the output.Error details
No response
Environment data
Name Value
---- -----
PSVersion 7.3.1
PSEdition Core
GitCommitId 7.3.1
OS Microsoft Windows 10.0.22623
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0Visuals
No response
Metadata
Metadata
Assignees
Labels
Resolution-FixedThe issue is fixed.The issue is fixed.