[BUG] Right-justified text overflowing
See original GitHub issueDescribe the bug
A clear and concise description of what the bug is.
Using justify='right'
on a console with smaller width than full width over-reaches the width:
To Reproduce A minimal code example that reproduces the problem would be a big help if you can provide it. If the issue is visual in nature, consider posting a screenshot.
from rich.console import Console
from rich.rule import Rule
console = Console(width=100)
console.print(Rule('A Title'))
console.print("Some normal text", end='')
console.print("right-justified", justify='right')
Platform What platform (Win/Linux/Mac) are you running on? What terminal software are you using. Which version of Rich?
On Manjaro linux. Problem seen in Terminator and also the Pycharm terminal.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
[BUG] Right-justified text overflowing · Issue #165
Describe the bug A clear and concise description of what the bug is. Using justify='right' on a console with smaller width than full...
Read more >Text-align justify but to the right?
We want to make text-align:justify, to take all the width of the column, but it should start from the right side. Is there...
Read more >text-align right bug - Forum
The first and third sentences leave it ambiguous, as the overflow could be in either direction, or determined by the text-align property. But ......
Read more >Box alignment and overflow
The solution I came up with is, instead of setting a justify-content: flex-end to align the messages to the bottom of the message...
Read more >169937 - text-align: center + text-overflow: ellipsis alignment
Issue 169937: text-align: center + text-overflow: ellipsis alignment ... 2. See that the two lines are not horizontally aligned. You may have to ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Excellent, thanks! It might be useful to have this use-case in the docs somewhere.
On Wed, Jul 22, 2020 at 7:06 AM Will McGugan notifications@github.com wrote:
The first argument in
add_column
is the header, but a grid has the table header disabled. You want to add two columns then add a row. Something like this…