Skip to content

fix: prevent table misalignment for redacted tokens#533

Open
yutak03 wants to merge 1 commit intoDopplerHQ:masterfrom
yutak03:fix/redacted-token-table-alignment
Open

fix: prevent table misalignment for redacted tokens#533
yutak03 wants to merge 1 commit intoDopplerHQ:masterfrom
yutak03:fix/redacted-token-table-alignment

Conversation

@yutak03
Copy link
Copy Markdown

@yutak03 yutak03 commented Apr 29, 2026

Summary

This PR replaces the Unicode ellipsis () used in redacted auth tokens with ASCII ....

Why

Redacted auth tokens are displayed in table output, for example in doppler configure --all.

The Unicode ellipsis character can have ambiguous display width depending on the terminal and font environment. In terminals where it is rendered with a width different from what the table formatter expects, table borders can become misaligned.

I observed the misalignment in:

  • iTerm2
  • macOS Terminal

I did not observe the issue in:

  • Ghostty
  • WezTerm
  • Warp

Using ASCII ... avoids ambiguous character width behavior and keeps table alignment stable across terminal environments.

Before

dp.ct.gy2c…Uyzdq

In affected terminals, this can cause the table border to shift by one column.

After

dp.ct.gy2c...Uyzdq

Screenshots

Before, in iTerm2:

before

After, in iTerm2:

after_fix

Testing

  • make build
  • make test

@yutak03 yutak03 requested a review from a team as a code owner April 29, 2026 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant