Skip to content

Commit

Permalink
fix(table): disable table content wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
andreynering committed Mar 7, 2025
1 parent 19e3b92 commit e56baec
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 33 deletions.
2 changes: 1 addition & 1 deletion ansi/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (e *TableElement) Render(w io.Writer, ctx RenderContext) error {
renderText(iw, ctx.options.ColorProfile, bs.Current().Style.StylePrimitive, rules.BlockPrefix)
renderText(iw, ctx.options.ColorProfile, style, rules.Prefix)
width := int(ctx.blockStack.Width(ctx)) //nolint: gosec
ctx.table.lipgloss = table.New().Width(width)
ctx.table.lipgloss = table.New().Width(width).Wrap(false)

return nil
}
Expand Down
16 changes: 4 additions & 12 deletions ansi/testdata/TestRendererIssues/44.golden

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 8 additions & 20 deletions ansi/testdata/TestRendererIssues/46_2.golden

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e56baec

Please sign in to comment.