Open j0ru opened 1 year ago
I could add a WrapStyle::Abort
or something that stops performing if we encounter a line break?
Ah, I should have clarified. I mean when the max_width is exceeded. So instead of wrapping to a new line, the rest of the input is dropped
This would be useful for apps that only want to show a preview of the full text or only expect to have to display a single line, like idk. a program launcher ^^
This could be shoehorned into the
WrapStyle
as anDrop
option with an optional suffix, i.e.Drop(Some("…"))
Thanks for the great library, have been using confidently it for a while now