Skip to content

Commit 3c681f5

Browse files
committed
Fix column width
1 parent ee0de4d commit 3c681f5

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

cmd/list.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@ func listParsersCmd() *cobra.Command {
3838
// Header and rows are left-aligned.
3939
tablewriter.WithHeaderAlignment(tw.AlignLeft),
4040
tablewriter.WithRowAlignment(tw.AlignLeft),
41-
// Preserve whitespace and use two-space padding between columns.
42-
tablewriter.WithTrimSpace(tw.Off),
41+
// Use two-space padding between columns.
4342
tablewriter.WithPadding(tw.Padding{
44-
Left: " ",
4543
Right: " ",
4644
Overwrite: true,
4745
}),

pkg/analyze/analyze.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -528,9 +528,7 @@ func (a *Analyzer) DirAnalyze(displayRecord map[netip.Prefix]time.Time, sortBy S
528528
table := tablewriter.NewTable(
529529
tableBuf,
530530
tablewriter.WithHeaderAutoFormat(tw.Off),
531-
tablewriter.WithTrimSpace(tw.Off),
532531
tablewriter.WithPadding(tw.Padding{
533-
Left: " ",
534532
Right: " ",
535533
Overwrite: true,
536534
}),
@@ -724,9 +722,7 @@ func (a *Analyzer) PrintTopValues(displayRecord map[netip.Prefix]time.Time, sort
724722
Border: renderer.Tint{Columns: []renderer.Tint{}},
725723
Separator: renderer.Tint{Columns: []renderer.Tint{}},
726724
})),
727-
tablewriter.WithTrimSpace(tw.Off),
728725
tablewriter.WithPadding(tw.Padding{
729-
Left: " ",
730726
Right: " ",
731727
Overwrite: true,
732728
}),

0 commit comments

Comments
 (0)