Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken overflow on wide unusual characters #682

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

robinwhittleton
Copy link
Member

Noticed that a 〃 DITTO MARK is apparently too wide for a single character, which means that the width=1 setup in rich.table converts it to an ellipsis in the Terminal. Which was confusing.

Easy fix is just to remove the width constraint.

This was added in 000d7c0, but doesn’t seem to be necessary for anything else I’m missing.

Noticed that a 〃 DITTO MARK is apparently too wide for a single character, which means that the width=1 setup in rich.table converts it to an ellipsis in the Terminal. Which was confusing.

Easy fix is just to remove the width constraint.
@acabal
Copy link
Member

acabal commented Apr 10, 2024

I must have put it in there for a reason, something must have come up during testing to compel me to set the width. I should have written a comment. Does the first column stretch wide if the terminal is wider than the table?

@robinwhittleton
Copy link
Member Author

Doesn’t seem to.

Screenshot 2024-04-10 at 23 03 27

@acabal acabal merged commit 364e4f8 into master Apr 10, 2024
2 checks passed
@acabal
Copy link
Member

acabal commented Apr 10, 2024

OK!

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.

2 participants