Files
codex/codex-rs/tui/tests
Joe Savona 110f065202 Add whitespace preservation to status line text (#63757)
## Why

Status line text collapses spaces and tabs by default. Authors need a
way to retain indentation and alignment while styling parts of the text.

## What changed

Add the optional `preserveWhitespace` prop to text nodes. When enabled,
it preserves spaces and tabs across nested styles and uses the same
wrapping rules as inline code. Inline code continues to preserve
whitespace automatically.

## Testing

Add a rendering test that compares styled and unstyled text across
terminal widths and checks tab expansion and bold styling. Add a
TypeScript contract fixture that uses the new prop.

GitOrigin-RevId: 525ae1d7df2df036d74990e18092286030041b23
2026-11-24 22:45:14 +00:00
..