Skip to content

Commit

Permalink
Fix incorrect handling of naked newline characters in text blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
nicbarker committed Dec 4, 2024
1 parent 41f6616 commit 9f0cf75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clay.h
Original file line number Diff line number Diff line change
Expand Up @@ -2576,6 +2576,7 @@ void Clay__CalculateFinalLayout() {
for (int lineIndex = 0; lineIndex < currentElement->textElementData->wrappedLines.length; ++lineIndex) {
Clay_String wrappedLine = currentElement->textElementData->wrappedLines.internalArray[lineIndex]; // todo range check
if (wrappedLine.length == 0) {
yPosition += finalLineHeight;
continue;
}
Clay__AddRenderCommand(CLAY__INIT(Clay_RenderCommand) {
Expand Down

0 comments on commit 9f0cf75

Please sign in to comment.