From 65d92e4637c2075c95155188cc6afff4a7f59e39 Mon Sep 17 00:00:00 2001 From: Shaun Lawrie Date: Mon, 23 Sep 2024 12:28:44 +1200 Subject: [PATCH] Don't trim table output based on number of columns --- 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 534798f..4dc9f63 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