Skip to content

Should wcwidth provide rjust, ljust, center and textwrap? #93

Closed

Activity

  1. changed the title [-]Should wcwidth provide rjust, ljust, and center?[/-] [+]Should wcwidth provide rjust, ljust, center and textwrap?[/+] on Oct 21, 2023
  2. dscrofts commented on Oct 31, 2023

    @dscrofts

    Definitely! I have implemented the ljust function as per the readme but it would be super convenient to have this already included.

  3. jquast commented on Jun 26, 2024

    @jquast
    OwnerAuthor

    On textwrap, there is a pretty strange edge-case found in downstream blessed library jquast/blessed#275 -- what should be done when wrapping wide characters to a column length of 1? We have no choice but to flow beyond column width. A width of "1" may not even be allowed, or allowed with caveats.

    We must also be very careful not to split ZWJ and VS-16 sequences apart.

  4. jquast commented on Jan 15, 2026

    @jquast
    OwnerAuthor

    Proposed as #168, and #169

  5. jquast commented on Jan 17, 2026

    @jquast
    OwnerAuthor

    terminal-aware rjust, ljust, center, and wrap merged for next release (0.3.0)

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions