From 1b34eb7b2ffe89a5daee446b580657f268f99cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Thu, 14 May 2026 01:43:27 -0300 Subject: [PATCH] Fix small text collapse bug. --- src/eepp/ui/uirichtext.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/eepp/ui/uirichtext.cpp b/src/eepp/ui/uirichtext.cpp index 2da6f45bb..8345ca007 100644 --- a/src/eepp/ui/uirichtext.cpp +++ b/src/eepp/ui/uirichtext.cpp @@ -1017,6 +1017,9 @@ void UIRichText::rebuildRichText( UILayout* container, RichText& richText, Intri richText.addSpan( "", span->getFontStyleConfig(), rightOnly, padRightOnly ); } + if ( shouldCollapse && span->isInlineBlock() ) + lastSpanEndsWithSpace = true; + handled = true; }