Skip to content

fix(cli): keep the banner glyphs aligned through yargs' help formatter#85

Merged
Aayam Bansal (aayambansal) merged 1 commit into
mainfrom
fix/ascii-logo
Jul 5, 2026
Merged

fix(cli): keep the banner glyphs aligned through yargs' help formatter#85
Aayam Bansal (aayambansal) merged 1 commit into
mainfrom
fix/ascii-logo

Conversation

@aayambansal

Copy link
Copy Markdown
Member

The yargs/cliui help formatter trims leading whitespace on every line, which stripped the relative indentation out of the ANSI-shadow banner — the O's top and bottom rows shifted left and the letters sheared (the logo.ts art itself was always correct). The renderer now emits braille blanks (U+2800) for each line's leading margin: they render as blank cells but aren't whitespace, so no formatter can collapse them.

Verified by capturing --help output: all twelve banner rows keep their glyph alignment. Typecheck and CLI tests pass.

The help formatter trims leading whitespace per line, which stripped
the O glyph's indentation and sheared the whole OPEN SCIENCE banner.
Lead each line with braille blanks (U+2800) — they render as blank
cells but aren't whitespace, so the margin survives formatting in every
consumer (--help, upgrade, web, uninstall).
@vercel

vercel Bot commented Jul 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openscience Ready Ready Preview, Comment Jul 5, 2026 11:53am

Request Review

@aayambansal Aayam Bansal (aayambansal) merged commit 3e12440 into main Jul 5, 2026
11 checks passed
@aayambansal Aayam Bansal (aayambansal) deleted the fix/ascii-logo branch July 5, 2026 11:59
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