From b2057a5da7c536fcdf8c32ac2497d7b48ce880d9 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 16 Apr 2024 08:48:16 +0100 Subject: [PATCH] Hypertext: Fix missing space after single letter word (#14551) Fixes #11727 --- games/devtest/mods/testformspec/formspec.lua | 2 +- src/gui/guiHyperText.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/games/devtest/mods/testformspec/formspec.lua b/games/devtest/mods/testformspec/formspec.lua index 6e1dd4946..758bad631 100644 --- a/games/devtest/mods/testformspec/formspec.lua +++ b/games/devtest/mods/testformspec/formspec.lua @@ -64,7 +64,7 @@ local inv_style_fs = [[ list[current_player;main;.5,7;8,4] ]] -local hypertext_basic = [[ +local hypertext_basic = [[A hypertext element Normal test This is a normal text. diff --git a/src/gui/guiHyperText.cpp b/src/gui/guiHyperText.cpp index 2dbdf3b99..76bc98a71 100644 --- a/src/gui/guiHyperText.cpp +++ b/src/gui/guiHyperText.cpp @@ -293,8 +293,8 @@ void ParsedText::pushChar(wchar_t c) else return; } else { - m_empty_paragraph = false; enterElement(ELEMENT_TEXT); + m_empty_paragraph = false; } m_element->text += c; }