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
-
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
SplitAt
and 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
TextLine
class, add a method something like:and have the
SplitAt
function adjusted to something like:Desired behavior:
Current behavior:
Beta Was this translation helpful? Give feedback.
All reactions