-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
Currently working on something that requires me to keep track of a cursor in a message and wrap the message in a textbox with the cursor in the right place. This currently is not possible as wrapping trims the trailing whitespace making wrapped text different length from the original message misaligning any position i might track in the message.
Trimming trailing whitespace could be disabled in the options?
wanted behavior.
let text = "as a hello";
let wrapped = textwrap::wrap(text, 5);
// ["as ", " a ", "hello"]joshka, Effnote, ccbrown, macorrales and jolars
Metadata
Metadata
Assignees
Labels
No labels