Skip to content

REPL table renderer: column alignment (:--:/---:) ignored in the TUI #143

Description

@justrach

Follow-up from PR #127 (merged into release/v0.0.193, commit 16c9db7).

renderTable in src/repl.zig skips the separator row entirely (if (ri == 1) continue;) and never parses its :/- alignment markers. Every TUI column is left-justified (padding always appended after the cell). The GUI's ChatTable does honor align, so the same markdown table renders differently on the two surfaces for right/center-aligned columns.

Fix: parse the alignment row into per-column left/center/right and apply it when padding cells in renderTable (and decide whether renderRecords should too). Non-blocking; scope-narrowing that should be made deliberate/consistent with the GUI.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions