Issue 367 introduced lingering whitespaces #392
Unanswered
batwomankt
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Before the fix for issue 367 was merged, if the character at the end of a split for word wrap was whitespace, it would be trimmed. However, with the 367 fix introduced, that particular bit of trimming is missed in
SplitAtand images have lingering whitespaces at the end of the line that are not trimmed properly.After some fiddling, I have a suggestion on how to have both the desired line split behavior and whitespace trimming. This still passes the 3 line count desired by the opener of issue 367, while also removing any trailing whitespaces from text lines!
In the
TextLineclass, add a method something like:and have the
SplitAtfunction adjusted to something like:Desired behavior:

Current behavior:

All reactions