Skip to content

th-6e77b7: tabled ansi feature — coloured status cells stop over-widening columns#146

Merged
brentrager merged 3 commits into
mainfrom
th-6e77b7-ansi-width
Jul 3, 2026
Merged

th-6e77b7: tabled ansi feature — coloured status cells stop over-widening columns#146
brentrager merged 3 commits into
mainfrom
th-6e77b7-ansi-width

Conversation

@brentrager

Copy link
Copy Markdown
Contributor

tabled's width calc counted ANSI escape bytes as visible chars, over-widening any th admin column with a coloured status cell. tabled 0.18 ships an ansi feature that strips escapes before measuring — enabled it and added a width-equality regression test (coloured active renders the same table width as plain active). Closes pearl th-6e77b7.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KTAAbdrbdQSy8dVK7nsH96

…widen columns

owo_colors escapes in status cells were counted as visible chars by
tabled's width calc. The dep ships an 'ansi' feature for exactly this;
one line + a width-equality regression test.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KTAAbdrbdQSy8dVK7nsH96
@brentrager brentrager enabled auto-merge (squash) July 3, 2026 04:43
@changeset-bot

changeset-bot Bot commented Jul 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 82cce4e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@smooai/smooth Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@brentrager brentrager merged commit 03c3028 into main Jul 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant