Skip to content

Commit

Permalink
one final spot where whitespace needs trimming, non CDK as well as CDK
Browse files Browse the repository at this point in the history
  • Loading branch information
batwomankt committed Mar 19, 2024
1 parent 89b4ce7 commit 73cff2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SixLabors.Fonts/TextLayout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1321,6 +1321,9 @@ public TextLine SplitAt(LineBreak lineBreak, bool keepAll)

if (index == 0)
{
// Now trim trailing whitespace from this line in the case of an exact
// length line break (non CJK)
this.TrimTrailingWhitespaceAndRecalculateMetrics();
return this;
}

Expand Down

0 comments on commit 73cff2e

Please sign in to comment.