-
-
Notifications
You must be signed in to change notification settings - Fork 628
Fix the right-border on unicode tables #39023
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
Conversation
It looks like during the conversion to unicode, the right borders of table cells were overlooked. Instead of a nice unicode character, they still have an ASCII pipe. For example, sage: table([1],frame=True) ┌───┐ │ 1 | └───┘ This commit changes it to a unicode thingy, just like the left borders, sage: table([1],frame=True) ┌───┐ │ 1 │ └───┘ and updates all of the tests in sage.misc.table.
The right borders of table cells have been updated to use unicode instead of an ASCII pipe, so any tests that print tables need to be changed.
Documentation preview for this PR (built with commit c5d9fc2; changes) is ready! 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tl;dr the change is from
sage: unicodedata.name('|')
'VERTICAL LINE'
to
sage: unicodedata.name('│')
'BOX DRAWINGS LIGHT VERTICAL'
Makes sense. (why did nobody notice this earlier)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool, thank you!
Thanks! |
sagemathgh-39023: Fix the right-border on unicode tables Turn ``` sage: table([1],frame=True) ┌───┐ │ 1 | └───┘ ``` into ``` sage: table([1],frame=True) ┌───┐ │ 1 │ └───┘ ``` which should look a bit better (depends on your font) and is more consistent (the left and right borders now match). URL: sagemath#39023 Reported by: Michael Orlitzky Reviewer(s): Martin Rubey, user202729
sagemathgh-39023: Fix the right-border on unicode tables Turn ``` sage: table([1],frame=True) ┌───┐ │ 1 | └───┘ ``` into ``` sage: table([1],frame=True) ┌───┐ │ 1 │ └───┘ ``` which should look a bit better (depends on your font) and is more consistent (the left and right borders now match). URL: sagemath#39023 Reported by: Michael Orlitzky Reviewer(s): Martin Rubey, user202729
Turn
into
which should look a bit better (depends on your font) and is more consistent (the left and right borders now match).