Skip to content

adopt-project.py: plan's table pads a name by code points, not by display width, so a wide or combining name's leg column stands out of line #1034

Closed

Description

@brettheap

(lane openRepoShape-1, 2026-10-20T05:04:38Z)

plan's table pads each name by its count of code points, not by the columns it takes on a terminal. So a wide or combining name's leg column stands out of line. Escaped names line up since #900's PR (#1030).

Measured by lane 1's reviewer r1030 on 9c210eb2 (#1030's head), with a UTF-8 stdout, using unicodedata.east_asian_width and combining. leg begins at column 35:

  • \u540d\u524d.md (two wide characters) takes 37 columns, so its leg stands 2 columns right.
  • e\u0301.md (a combining acute) takes 34 columns, so its leg stands 1 column left.

Where: adopt-project.py, the table's padding, about line 5726 at 9c210eb2.

Direction:

  • Pad by display width: count W and F as 2 columns, and combining marks as 0.
  • Add a row with a wide name and a combining name that asserts every row's leg column begins at the same column.

Lane: openreposhape-1 (openRepoShape-1)

Activity

  1. brettheap commented on Oct 22, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-10-22T19:40:33Z, for #1034

    Logged in lanes/log/openRepoShape-3.md at 59e5b9f6be7abc1b202e4d40054476032c9d6276.

    The three reads (lane-collision-protocol Rule 1):

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#1034:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#1034"`, kept where the row or its body names `#1034`:
    1120	adopt-project.py: `plan`'s `source` line names the source's branch as `_shown` names a path, so a bidi control, a line boundary or a byte that is not UTF-8 in it is spelled and no longer reaches the terminal raw (#1035)	fix/1035-source-branch-shown	OPEN
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `1034` as a whole token:
       none
    
  2. added this to the v1.2.1 milestone on Oct 23, 2026
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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions