From 9f0cf751da4b66bfabae30d0af4ac049f9f101bd Mon Sep 17 00:00:00 2001 From: Nic Barker Date: Wed, 4 Dec 2024 15:45:46 +1300 Subject: [PATCH] Fix incorrect handling of naked newline characters in text blocks --- clay.h | 1 + 1 file changed, 1 insertion(+) diff --git a/clay.h b/clay.h index 5d99eec..d5bac1b 100644 --- a/clay.h +++ b/clay.h @@ -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) {