Skip to content

fix: wrap long text on multiple rows#216

Draft
v-alexmoraru wants to merge 1 commit intomicrosoft:mainfrom
v-alexmoraru:dev/v-alexmoraru/fix-table-width-visibility
Draft

fix: wrap long text on multiple rows#216
v-alexmoraru wants to merge 1 commit intomicrosoft:mainfrom
v-alexmoraru:dev/v-alexmoraru/fix-table-width-visibility

Conversation

@v-alexmoraru
Copy link
Copy Markdown
Member

When print_output_format rendered a table with show_headers=True and long column values, rows exceeded the terminal width causing headers and values to appear misaligned or off-screen.

  • Added _wrap_text helper that splits text into lines respecting visual width
  • Updated _format_unix_style_field and _format_unix_style_entry to return list[str] — one line per wrapped row — instead of a single potentially overflowing string
  • Updated print_entries_unix_style to cap column widths proportionally to fit the terminal and print each new row

@v-alexmoraru v-alexmoraru changed the title Fix: wrap long text on multiple rows fix: wrap long text on multiple rows Apr 17, 2026
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