rio
rio copied to clipboard
Split `wrap` parameter of `rio.Text` into two different parameters
Description:
The current wrap
parameter of rio.Text
combines two functionalities: wrapping text and ellipsizing text when it reaches the end of the line. This combination is confusing and should be separated into two distinct parameters for clarity.
Current Implementation:
wrap: bool | Literal["ellipsize"] = False
Proposed Implementation:
wrap: bool = False
ellipsize: bool = False
By splitting these functionalities, we can improve code readability and make the behavior of text handling more explicit.