question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The rule line goes to the second line when the parameter is Chinese or Japanese

See original GitHub issue

My code:

from rich.console import Console

Console().rule("欢迎!")

Result: image

I tried Japanese as well, and encountered the same problem.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
willmcgugancommented, Jun 10, 2020

That’s by design since 2.0.0. The column can’t wrap because there are no spaces, so the text is overflowing. If you want the old behaviour set overflow on add_column to “fold”. i.e. table.add_column("test", overflow="fold").

See the docs on overflow.

1reaction
michaelfyccommented, Jun 10, 2020

It works! Thanks for the immediate fix!👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Line breaking rules in East Asian languages - Wikipedia
The line breaking rules in East Asian languages specify how to wrap East Asian Language text such as Chinese, Japanese, and Korean.
Read more >
Approaches to line breaking - W3C
Vertically-set Chinese, Japanese, Korean, and Traditional Mongolian wrap words upwards, but the new line appears to the left for CJK, and right ...
Read more >
38th parallel | Definition, History, & Significance - Britannica
38th parallel ; demarcates ; North Korea and ; South Korea. The line was chosen by ; World War II as an army...
Read more >
word-break - CSS-Tricks
The word-break property in CSS can be used to change when line breaks ... can break onto the next line. keep-all : for...
Read more >
Improving MACD Technical Analysis by Optimizing ... - MDPI
The second is to execute a 'buy (sell)' transaction only when the MACD line value exceeds (goes below) the Signal line value by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found