-
Notifications
You must be signed in to change notification settings - Fork 55
textWrap rework #142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
textWrap rework #142
Conversation
|
I would recommend viewing this in split mode rather than unified |
|
would it be possible to add a config key with which you can specify what type of line wrapping (Vanilla, CB, Poseidon) you would like to use? (#39) |
|
A function at the bottom of the file called |
RitzKid76
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

this one hurt ngl
basically rewrote the whole text wrap from scratch to fix the weird spacing goofyness from the original implementation. for quality/readability improvements, made it so that the wrapping is at word level instead of character level. i tried to write comments on most of the logic so others can understand the flow here. also using a temp char that is UTF8 because I was getting paranoid about \n.