Commit 395df1f
CLEANUP: html_text: measure table cells without rendering them twice
Column widths were established by formatting every cell a second time
with tty(false) and counting characters, because ANSI attributes would
otherwise be counted as text. write_size/4 reports display columns and
ignores escape sequences, so the cells are measured as they are printed.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LmQHEtHoVQ2NH2Zzusvepa1 parent 3575a02 commit 395df1f
2 files changed
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
629 | | - | |
| 629 | + | |
| 630 | + | |
630 | 631 | | |
631 | 632 | | |
632 | | - | |
| 633 | + | |
633 | 634 | | |
634 | | - | |
| 635 | + | |
635 | 636 | | |
636 | 637 | | |
637 | 638 | | |
| |||
717 | 718 | | |
718 | 719 | | |
719 | 720 | | |
720 | | - | |
721 | | - | |
722 | | - | |
| 721 | + | |
723 | 722 | | |
724 | 723 | | |
725 | 724 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6985 | 6985 | | |
6986 | 6986 | | |
6987 | 6987 | | |
6988 | | - | |
6989 | | - | |
6990 | | - | |
| 6988 | + | |
| 6989 | + | |
| 6990 | + | |
| 6991 | + | |
6991 | 6992 | | |
6992 | 6993 | | |
6993 | 6994 | | |
| |||
0 commit comments