mirror of
https://github.com/nicbarker/clay.git
synced 2025-01-23 18:06:04 +00:00
Fix incorrect handling of naked newline characters in text blocks
This commit is contained in:
parent
41f6616993
commit
9f0cf751da
1
clay.h
1
clay.h
@ -2576,6 +2576,7 @@ void Clay__CalculateFinalLayout() {
|
|||||||
for (int lineIndex = 0; lineIndex < currentElement->textElementData->wrappedLines.length; ++lineIndex) {
|
for (int lineIndex = 0; lineIndex < currentElement->textElementData->wrappedLines.length; ++lineIndex) {
|
||||||
Clay_String wrappedLine = currentElement->textElementData->wrappedLines.internalArray[lineIndex]; // todo range check
|
Clay_String wrappedLine = currentElement->textElementData->wrappedLines.internalArray[lineIndex]; // todo range check
|
||||||
if (wrappedLine.length == 0) {
|
if (wrappedLine.length == 0) {
|
||||||
|
yPosition += finalLineHeight;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
Clay__AddRenderCommand(CLAY__INIT(Clay_RenderCommand) {
|
Clay__AddRenderCommand(CLAY__INIT(Clay_RenderCommand) {
|
||||||
|
Loading…
Reference in New Issue
Block a user