8000 out: text rows end at their last non-empty cell by twmb · Pull Request #81 · twmb/kcl · GitHub
[go: up one dir, main page]

Skip to content

out: text rows end at their last non-empty cell - #81

Merged
twmb merged 1 commit into
masterfrom
text-trim
Sep 18, 2026
Merged

twmb merged 1 commit into
masterfrom
text-trim

Conversation

@twmb
@twmb twmb commented Sep 18, 2026
Copy link
Copy Markdown
Owner

Text tables ended a row in padding whenever its last cells were empty: a mutator's OK with no MESSAGE, or an errored describe row with nothing after ERROR. tabwriter pads every cell to its column, so flushText now renders through a buffer and trims each line. cluster features describe on a broker with no features printed an empty header and a "No feature flags found." line on stderr; the stderr line is gone, since the empty header says the same thing every other table says it with.

Text only; awk and JSON are unchanged.

Changelog

CHANGED

  • Text tables no longer pad a row past its last non-empty cell.
  • cluster features describe on a broker with no features prints the header only, without a stderr line.

tabwriter pads every cell to its column, so a row whose trailing cells
are empty, a mutator's OK with no MESSAGE, or an errored describe row
with nothing to say, ended in spaces. flushText now renders through a
buffer and trims each line. cluster features describe drops its "No
feature flags found." stderr line: the empty header already says so,
as it does on every other table.
@twmb
twmb merged commit a64e9ba into master Sep 18, 2026
1 check passed
@twmb
twmb deleted the text-trim branch September 18, 2026 05:29
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

0