From 8520f0e92d16179c6ca50539b43d3e7ffc25fe78 Mon Sep 17 00:00:00 2001 From: Shaun Lawrie Date: Mon, 23 Sep 2024 12:56:05 +1200 Subject: [PATCH] Revert "Don't trim table output based on number of columns" This reverts commit 65d92e4637c2075c95155188cc6afff4a7f59e39. --- PwshSpectreConsole/public/formatting/Format-SpectreTable.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PwshSpectreConsole/public/formatting/Format-SpectreTable.ps1 b/PwshSpectreConsole/public/formatting/Format-SpectreTable.ps1 index 4dc9f63..534798f 100644 --- a/PwshSpectreConsole/public/formatting/Format-SpectreTable.ps1 +++ b/PwshSpectreConsole/public/formatting/Format-SpectreTable.ps1 @@ -178,9 +178,9 @@ function Format-SpectreTable { } if ($FormatTableParams.Keys.Count -gt 0) { Write-Debug "Using Format-Table with parameters: $($FormatTableParams.Keys -join ', ')" - $collector = $collector | Format-Table @FormatTableParams * + $collector = $collector | Format-Table @FormatTableParams } else { - $collector = $collector | Format-Table * + $collector = $collector | Format-Table } if (-Not $collector.shapeInfo) { # scalar array, no header